Symfony4 + deploy project

291 views Asked by At

I encounter an error when I try to deploy with php deployer. Here is the error that I meet:

Extracting archive - Installing symfony/web-link (v4.1.4): Loading from cache
Extracting archiveGenerating optimized autoload files
post-install-cmd: @auto-scripts
Executing script cache:clear
Executed script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! PHP Fatal error: Uncaught RuntimeException: APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a
Composer dependency to load variables from a .env file. in /home/projet/www/beta/releases/1/bin/console:20
!! Stack trace:
!! #0 {main}
!! thrown in /home/projet/www/beta/releases/1/bin/console on line 20
!!

Should we configure something more to deploy in prod and dev?

Thank you for help.

0

There are 0 answers