Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding support for dotenv using the -c config file option #1236
When running phinx at the command line, the -c or --configuration flag is used and the value is pointed at the phinx.config.php file, like so:
$ ./bin/phinx migrate -e development -c phinx.config.php
Again, the naming of the config file is merely a suggestion.
Note: Correct me if I'm wrong, but I don't think this needs any tests, since loading a config file is already tested. If it needs tests, I'll add them.
@@ Coverage Diff @@ ## master #1236 +/- ## ========================================= - Coverage 74.84% 74.8% -0.05% ========================================= Files 35 35 Lines 4783 4767 -16 ========================================= - Hits 3580 3566 -14 + Misses 1203 1201 -2