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

Environment/Config file as a parameters #43

Open
erralb opened this issue Nov 27, 2013 · 4 comments
Open

Environment/Config file as a parameters #43

erralb opened this issue Nov 27, 2013 · 4 comments

Comments

@erralb
Copy link

erralb commented Nov 27, 2013

I am using environment to load different config files, in this case, especially database.php.

When running a migration, I get the error :

 Database_Exception [ 2 ]: mysql_connect(): php_network_getaddresses: getaddrinfo failed: System error ~ MODPATH/database/classes/Kohana/Database/MySQL.php [ 67 ]%  

which I can fix by copying my config/environments/development/database.php on to the config/database.php

Would be nice to be able to specify which config file / environment the command shoud use

@zeelot
Copy link
Member

zeelot commented Nov 27, 2013

Can't you already do this? APP_ENV=development minion migrations:run

@erralb
Copy link
Author

erralb commented Nov 29, 2013

Totally works. Sorry I didn't know!

Thanks for the answer.

@erralb erralb closed this as completed Nov 29, 2013
@zeelot
Copy link
Member

zeelot commented Nov 29, 2013

Cheers :)

@erralb
Copy link
Author

erralb commented Jul 16, 2014

Sorry to bring that up again, but actually I'm not able to do it anymore!! :-/
What is the complete command ?
I've been trying stuff like (from the webroot folder of my project) :

php index.php APP_ENV=development migrations:status

I tried moving the APP_ENV part around but no luck

@erralb erralb reopened this Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants