Adding actions to Capistrano tasks -
how can add capistrano's deploy task? need create symlink in "public" directory.
create new task create symlink, use hook add task capistrano deploy workflow appropriate.
e.g.
namespace :deploy desc "symlink file" task :symlink_file, :roles => :app run "ln -s file public/file" end end after 'deploy:update_code', 'deploy:symlink_file'
Comments
Post a Comment