when I trying to migrate something I get this error:
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command?
Command Cancelled!
Im running a centOS 6.5 server without Plesk 12
Is there anyway to figure out what the error is or how to solve it?
Thanks
5
Answers
Change your environment first from production to local . /bootstrap/start.php somewhere line no 26
Simple,
Good luck!
I’ve just bumped into this problem as well. If you don’t want to reconfigure your app (which is probably a good idea) hit ‘Y’ and then enter instead of just enter. It will go on even in production setting.
A bit late for answer but just for info purpose you can use
php artisan migrate --force
to avoid it OR in laravel 5.2 they are using a keyenv
in config/app.php configure it to avoid this promptreference https://github.com/laravel/laravel/blob/master/config/app.php
Just use –force flag in production:
https://laravel.com/docs/6.x/migrations#running-migrations