Here, how I solved my question:
First I didn't need the command php artisan migrate --env=local
, I just need set on my virtualhost: SetEnv LARAVEL_ENV development
.
Second, as William Cahill-Manley say, I need to work on application/paths.php, the $environments. I've used it before but the wrong way. In my case, I solve with that:
$environments = array(
'development' => array('http://localhost/project*', '*project/*'),
'production' => array('http://project.com', 'http://*.project.com')
);
My problem was because my code before was like that:
$environments = array(
'development' => array('http://localhost/project*', '*project*'),
'production' => array('http://project.com', 'http://*.project.com')
);
And because the second element of development array, in the production server always will be in development.
Thats because the url on development be http://project/
and on production be http://project.com/
or http://user.project.com/
See, the project will force in all envonriments be development by the asterisk/wildcard.