artisan --env not working, why?
I run php artisan migrate::install --env=foobar, but PDO can't connect, why?
[PDOException]
SQLSTATE[HY000] [2002] No connection could be made because the target machi
ne actively refused it.
I have added an entry in bootstrap/start.php and I know it is working,
when I browse the webpage it connects like it should.
$env = $app->detectEnvironment(array(
'foobar' => array('foobar.com')
));
I've created the folder app/config/foobar, copied the database.php file
and edited the mysql-array to match my mysql credentials.
What am I doing wrong? Why can't artisan recognize that I want to use my
foobar-envoirment?
No comments:
Post a Comment