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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -