As per this blog post by Andrew Elkins I run this to set my local environment so artisan will know it without the --env=local
tag on each command. For whatever reason, this result is not always the same on OSX
For example, with bootstrap/start.php I have
$env = $app->detectEnvironment(array(
'local' => array('localhost*',
'*.dev',
'Jeremys-MacBook-Air.local',
'Jeremys-MacBook-Air-2.local'
),
));
I keep the second one because occassionally between coffee shops and whatnot, my machine name occassionally changes. Also, all those options are probably overkill but occassionaly something slips it up and I'm baffled until I realize it's using my production settings.