Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Capistrano current path

I need to override default Capistrano current path. I want to deploy to /var/www/apps/myapp and then get current symlink set at /var/www/mysite.com instead of default /var/www/apps/myapp/current. How do I achieve that?

like image 511
Paul Nossoff Avatar asked Jun 22 '26 08:06

Paul Nossoff


1 Answers

Define the following in your deploy.rb:

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

That might trip up plugins, script or other parts of capistrano that assume a default layout.

A safer solution would be to simply symlink /var/www/mysite.com to /var/www/apps/myapp/current

like image 59
Jan Avatar answered Jun 25 '26 02:06

Jan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!