Skip to content
Browse files

autoated deploy

  • Loading branch information...
1 parent 7a4deb4 commit 10396bad866dd23f023913df5bf34dfcd025f03f @seanhess committed May 30, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 deploy
View
21 deploy
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+echo "DEPLOY"
+ssh -t root@ratinator.ly <<REMOTE
+cd ratinatorly
+
+# checkout
+echo 'Checking out code'
+git fetch
+git reset --hard origin/master
+
+# install deps
+echo 'Installing'
+npm install
+
+# start the server
+echo 'Restarting'
+stop ratinatorly
+start ratinatorly
+
+REMOTE

0 comments on commit 10396ba

Please sign in to comment.
Something went wrong with that request. Please try again.