Closed mediafigaro closed 5 years ago
Ryan Weaver created Ansistrano videos in KnpUniversity / SymfonyCasts a while ago, not sure if they updated them with Symfony4, probably worth asking in https://github.com/cbrunnkvist/ansistrano-symfony-deploy
Also, the best way to avoid these issues is to have apache / nginx / php-fpm run with the same user you run the CLI commands post deploy or chown the cache folder to the server users (nginx, www-data, apache2 depending on your distro / installations) before changing the symlink
Closing as this is not an Ansistrano issue but your systems misconfiguration, there are literally hundreds of high traffic Symfony projects deployed with no issues
I was wondering if there were a full Symfony 4 exemple somewhere ? Is any hook necessary to make it work ? I still have problems with /cache/prod, even in 777, it works if I remove the prod directory. thanks