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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -