Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update deploy and config.ru for unicorns

  • Loading branch information...
commit d2d9dd38ecaa21863a64d223066de8ca7500617e 1 parent b478a8e
Sudara authored
Showing with 11 additions and 27 deletions.
  1. +5 −0 config.ru
  2. +6 −27 deploy
5 config.ru
View
@@ -0,0 +1,5 @@
+require "config/environment"
+
+use Rails::Rack::LogTailer
+use Rails::Rack::Static
+run ActionController::Dispatcher.new
33 deploy
View
@@ -26,36 +26,15 @@ ssh alonetone '
git reset --hard origin/master;
echo
fi
- '
-
-# handle restarts
-echo "Roll over, Mongrels! (one at a time)"
-ssh alonetone '
- echo "removing css/js"
- rm -f /data/alonetone/current/public/javascripts/allonetone.js
- rm -f /data/alonetone/current/public/stylesheets/alonetone-v2.css
- echo "restarting 5000"
- sudo monit restart mongrel_alonetone_5000;
- echo "giving sleepy mongrel 5000 some seconds to wake up"
- sleep 15
- # curling the mongrel, showing the status code and the time it took to complete.
- time curl localhost:5000 -I | head -n 1
-
- echo "restarting 5001"
- sudo monit restart mongrel_alonetone_5001;
- echo "giving sleepy mongrel 5001 some seconds to wake up"
- sleep 15;
- time curl localhost:5001 -I | head -n 1
-
- echo "restarting 5000"
- sudo monit restart mongrel_alonetone_5002
- time curl localhost:5002 -I | head -n 1
-
- sleep 10
rm -f /data/alonetone/current/public/javascripts/allonetone.js
rm -f /data/alonetone/current/public/stylesheets/alonetone-v2.css
+
+ '
+# handle restarts
+echo "Fly unicorns, fly!"
+
+ssh linode "/etc/monit/scripts/unicorn ramenmusic deploy"
- '
bundle exec newrelic deployments
Please sign in to comment.
Something went wrong with that request. Please try again.