Setting the current Capistrano path

I need to override the current default path of Capistrano. I want to deploy to /var/www/apps/myapp and then set the current symbolic link to /var/www/mysite.cominstead of the default value /var/www/apps/myapp/current. How do I achieve this?

+3
source share
1 answer

Define the following in your deploy.rb:

set :current_path, '/var/www/mysite.com'

This can lead to disabling plugins, script, or other parts of capistrano that assume a default layout.

A safer solution would be just a symbolic call /var/www/mysite.comto/var/www/apps/myapp/current

+7
source

All Articles