So you want to move your log directory? To a separate volume, maybe? But you are afraid that it will break too many things, like all those libraries with #{rails_root}/log
paths hardcoded in them? Fear not, there’s a simple workaround.
As you probably know, capistrano aliases your rails log dir to a shared dir outside of app folder.
1
|
|
This means that, in fact, all your logs turn up at /deploy_path/shared/log/
. Now all we need is to symlink that dir as well!
1 2 3 4 5 6 7 8 9 |
|
Hope this helps :)