db-migrate / db-migrate/english-docs

Dynamic env vars

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
17
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Was just going through documentation on this page https://db-migrate.readthedocs.io/en/latest/Getting%20Started/configuration/

and trying to create dynamic configruations but the documentation is not very clear, I can help in changing that but could you please shade some light on this.

Im basically trying to have something like
```

{
"defaultEnv": "local",
"local": {
"driver": "pg",
"user": "local_user",
"password": "cor_dev_pass",
"host": "localhost",
"database": "cor_local",
"port": "5432"

},
"development": {
"driver": "pg",
"user": "root",
"password": "root"
},
"staging": {
"driver": "pg",
"user": "root",
"password": "root"
},
"prod": {
"driver": "pg",
"user": "root",
"password": "root"
},

"sql-file" : true

}

```

But documentation does not really explain how will db-migrate KNOW when its local,dev,stag or prod

whats the work around it?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/98692857-dynamic-env-vars?utm_campaign=plugin&utm_content=tracker%2F11704504&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F11704504&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.