Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment