Is there a way to set the current path folder in Capistrano3.
I can see it's now part of the Capistrano::DSL::Paths module but I'm not sure how to change it.
Is there a way to set the current path folder in Capistrano3.
I can see it's now part of the Capistrano::DSL::Paths module but I'm not sure how to change it.
I solved this with something like this
set :current_path, "/somecurrentpathyouwant"
namespace :deploy do
desc "Create symlink to configured current path"
task :create_symlink do
on roles(:all) do
execute "rm -f #{fetch(:current_path)} && ln -s #{release_path} #{fetch(:current_path)}"
end
end
end
after :deploy, "deploy:create_symlink"