Skip to content

Instantly share code, notes, and snippets.

@akonan
Created May 14, 2010 09:49
Show Gist options
  • Save akonan/400992 to your computer and use it in GitHub Desktop.
Save akonan/400992 to your computer and use it in GitHub Desktop.
namespace :passenger do
desc "Restart Application"
task :restart do
#run "ln -fs #{deploy_to}/shared/index/ #{current_path}/index"
run "ln -fs #{deploy_to}/shared/logos/ #{current_path}/public/logos"
run "ln -fs #{deploy_to}/shared/pictures/ #{current_path}/public/pictures"
run "chmod -R o-w #{current_path}/public"
run "chmod -R g-w #{current_path}/public"
run "killall dispatch.fcgi || true"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment