kennethjaysone's avatar

Envoyer not migrating due to environment in production

I'm committing and pushing my code. My envoyer environment variables is set to staging like so:

APP_ENV=staging
APP_DEBUG=true

I've pushed some code, envoyer does it's thing but in the database section of the deployment, i get the following:

**************************************
*     Application In Production!     *
**************************************

Command Cancelled!
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Generating autoload files
**************************************
*     Application In Production!     *
**************************************

Command Cancelled!

Am i missing something. Thank you for reading this :)

0 likes
1 reply
lchachurski's avatar

You need to run this code, either in comoser.json or your custom script:

            "php artisan migrate --force"

It seems that envoyer doesn't consider APP_ENV when running composer

Please or to participate in this conversation.