I use Capistrano 3 and its plugin capistrano/symfony to deploy my Symfony application on a webserver. This server uses Nginx under Debian 8.
When I run cap prod deploy
, the script works. I can see my new release on /var/www/myapp/releases. /var/www/myapp/current is a symbolic link that points to my latest release.
But when I access to my app, it stills serving the old release. I tried to restart nginx, but the issue stills the same.
The only "solution" I found is to delete /var/www/myapp/current and /var/www/myapp/releases before running the Capistrano deployment.
Have you got an idea of where it can come from ?