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
merged 2 commits into from Nov 11, 2014

Commits on Oct 12, 2014

  1. 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 committed Oct 12, 2014
    Copy the full SHA
    17f7f55 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    04c1d08 View commit details
    Browse the repository at this point in the history