I had a similar problem when deploying my Laravel 5 application and it looks like he solved it by adding the following to the end of Capistrano deploy.rb:
namespace :deploy do
desc "Build"
after :updated, :build do
on roles(:web) do
within release_path do
execute :composer, "install --no-dev --quiet"
execute :php, "artisan clear-compiled"
execute :php, "artisan cache:clear"
execute :php, "artisan view:clear"
execute :php, "artisan twig:clean"
execute :php, "artisan route:cache"
execute :php, "artisan config:cache"
end
end
end
end
(If you are not using TwigBridge , be sure to delete the line twig:clean
.)
Edited to include strings clear-compiled
and view:clear
since they seem to solve additional problems with deploying Laravel applications using Capistrano.
source
share