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

CLI support for knexfiles that do not provide environment keys #527

merged 2 commits into from Nov 11, 2014


None yet
1 participant
Copy link

bendrucker commented Oct 12, 2014

@tgriesser Seems like this should be a pretty safe change but I'll leave for you to merge

Closes #328

bendrucker added some commits Oct 12, 2014

Change CLI config logic to support usage without environments
Scenario 1: Environment is defined via --env or NODE_ENV
* config is config[environment]

Scenario 2: Environment is undefined but config.development is an object
* config is config.development

Scenario 3: No environment and no config.development
* config is config

Also logs out the environment in use for scenarios 1 and 2

bendrucker added a commit that referenced this pull request Nov 11, 2014

Merge pull request #527 from tgriesser/cli-without-env
CLI support for knexfiles that do not provide environment keys

@bendrucker bendrucker merged commit eacb6c3 into master Nov 11, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed

elliotf pushed a commit to elliotf/knex that referenced this pull request Nov 24, 2014

@bendrucker bendrucker referenced this pull request Dec 4, 2014


Using knex with dotenv #590

@tgriesser tgriesser deleted the cli-without-env branch Feb 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.