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

Update documentation to include dotenvCustomPath information #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Getting Started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can also specify environment variables in your config file by using a specia
In this case, db-migrate will search your environment for variables
called `PRODUCTION_USERNAME` and `PRODUCTION_PASSWORD`, and use those values for the corresponding configuration entry.

If you use the [dotenv](https://www.npmjs.com/package/dotenv) package to manage environment variables, db-migrate will automatically load it.
If you use the [dotenv](https://www.npmjs.com/package/dotenv) package to manage environment variables, db-migrate will automatically load the configuration loaded at `./.env`. You can specify an alternate path to be used with dotenv with the --dotenvCustomPath command line option, or a `dotenvCustomPath` entry in the `.db-migraterc` file.

Note that if the settings for an environment are represented by a single string that string will be parsed as a database URL.

Expand Down
1 change: 1 addition & 0 deletions docs/Getting Started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Options:
--coffee-file Create a coffeescript migration file [default: false]
--migration-table Set the name of the migration table.
--table, --migration-table [default: "migrations"]
--dotenvCustomPath Set the path of the dotenv configuration file [default: "./.env"]
```

## Creating Migrations
Expand Down