Replies: 1 comment
-
It's depends on your setup. You can set environment variables with the command |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to see the app in prod mode, I do this in docker-compose.prod.yml;
Then I run
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
. It works and I can see I'm in production mode withphp bin/console about
.Then, back in the .env, I see the instruction state that Run "composer dump-env prod" to compile .env files for production use.
So my question is : what is the way to set the production mode for deploy? Should I just have any variable in docker.compose.prod.yml or I should run composer dump-env prod to generate .env.local.php and have the variables in that file? I'm really confusing about the environment with docker and .env file.
Beta Was this translation helpful? Give feedback.
All reactions