Skip to content

Environment variables in config file #270

Open
@aaronmoodie

Description

@aaronmoodie

I have separate config json files for dev and prod, using the format

{
    "user": USER,
    "password": PASSWORD,
    "database": DATABASE_NAME
}

Using the command db-migrate up --config config/production.json -e prod how would I reference USER and PASSWORD from production.json in my database.json config file?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions