I'm using Laravel and as part of my deploy routine I have the command
RUN php artisan migrate
Since I'm in production, I get the error
Application in production, Command Cancelled!
The fix is easy: RUN php rankbot/artisan migrate --force
but I feel this is not the right way to do it? What's the best way to ensure the DB schema is always up to date?