When a command is executed
dploy deploy main
and you have your own overlays/.env file that specifies any APP_ENV value, then it is ignored.
Deploy will always be dev in the cached laravel configuration file, even though the same .env file will have a different value.
STR:
- Setup Laravel project
- Configure dploy and
overlays/.env for project with APP_ENV=production value, with before_commands cd {release_directory} && php8.3 artisan optimize:clear
- run
dploy deploy main
Temp solution: run dploy deploy main --env=production