Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic env vars #53

Open
StasCelium opened this issue Feb 16, 2021 · 0 comments
Open

Dynamic env vars #53

StasCelium opened this issue Feb 16, 2021 · 0 comments

Comments

@StasCelium
Copy link

StasCelium commented Feb 16, 2021

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! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant