Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Capistrano 3 still put Rails logs in shared/log

I have upgraded to Capistrano 3 and successfully deployed several Rails apps on a new server.

Previously with Capistrano 2 deployments the Rails logs magically went to /myapp/shared/log/production.log

With my Cap3 deployments the logs are in the app folder myapp/current/log/production.log

Is this intentional or have I missed setting something up? Is there some special way to set it up so that they go to /shared/log ?

like image 746
giorgio Avatar asked Aug 12 '14 11:08

giorgio


1 Answers

Just found the answer.

You need to uncomment the following line in deploy.rb

set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
like image 109
giorgio Avatar answered Nov 06 '22 05:11

giorgio