8000 CLI env management by joecwallace · Pull Request #696 · laravel/laravel · GitHub
[go: up one dir, main page]

Skip to content

CLI env management #696

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

Closed
wants to merge 1 commit into from

Conversation

joecwallace
Copy link
Contributor

I love the env management in 3.2 so much that I decided to extend it to the CLI.

With this change, you can do something like

$environments = array(
    'local' => array('http://localhost*', '*.dev', 'mydevmachine'),
);

So that php artisan migrate will run against my 'local' env by default on my dev machine.

Of course, the --env option overrides this so that php artisan migrate --env=production will work as expected.

@spencerdeinum
Copy link
Contributor

This is awesome! +1

@taylorotwell
Copy link
Member

I dig it. :)

@taylorotwell
Copy link
Member

Would you mind sending this on the develop branch?

@joecwallace
Copy link
Contributor Author

Thanks, guys. Glad you like it. I opened a new pull request against the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0