Skip to content

Instantly share code, notes, and snippets.

@wjlafrance
Created August 23, 2011 19:18
Show Gist options
  • Save wjlafrance/1166198 to your computer and use it in GitHub Desktop.
Save wjlafrance/1166198 to your computer and use it in GitHub Desktop.
Rakefile additions
task :test do
system("autotest > log/test.log 2>&1 &")
end
task :deploy do
system("touch tmp/restart.txt")
system("rsync -r --delete * server:path")
end
task :tail_log do
system("tail -f log/*")
end
task :restart_passenger do
system("touch tmp/restart.txt")
puts "touched tmp/restart.txt"
end
task :restart_apache do
system("sudo apache2ctl graceful")
end
task :autotest do
system("autotest > log/test.log 2>&1 &")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment