ruby - Capistrano 3 set variable "previous_path" -
i trying set previous_path in capistrano3. aware capistrano 3 doesn't handle variable, set default variable in configuration. add function before
deploy::symlink::release
:
namespace :deploy desc 'set global variable previous_release' task :previous_release on roles(:all) |host| puts "current_path #{current_path}" set :previous_release, proc{capture("readlink #{current_path}")} end end end
but function keep giving me current_path after
symlink released , linked new deploy. need variable in order able handle copy previous_release
current_release
. thank you!
wiki
Comments
Post a Comment