From e664d0598f2ae57be24ad20bad7211cffb79655d Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 21 Jun 2010 18:47:01 -0400 Subject: [PATCH] working deploy task ... I think. --- Cakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cakefile b/Cakefile index 20f0bde..50b679c 100644 --- a/Cakefile +++ b/Cakefile @@ -6,7 +6,7 @@ task 'build', 'Build and watch the CoffeeScript source files', -> coffee.stdout.addListener 'data', (data) -> print data.toString() task 'deploy', 'Deploy to Linode', -> - exec "rsync -av --progress --inplace --rsh='ssh -p9977' . jashkenas@ashkenas.com:/home/jashkenas/sites/api_playground", -> + exec "rsync -av --progress --inplace --rsh='ssh -p9977' . jashkenas@ashkenas.com:/home/jashkenas/sites/api_playground", (err, stdout) -> puts "Deployed..." - exec "ssh -t -p 9977 jashkenas@ashkenas.com 'nohup node sites/api_playground/lib/app.js &; exit'", -> + exec "ssh -p 9977 jashkenas@ashkenas.com 'pkill -n node; EXPRESS_ENV=production nohup node sites/api_playground/lib/app.js > /var/log/node.log 2>&1 &'", (err, stdout, stderr) -> puts "Restarted..."