ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

info / cache remove #321

Closed mediafigaro closed 5 years ago

mediafigaro commented 5 years ago

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

ricardclau commented 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