https://github.com/johnae/rails_supervision
Rails, Unicorn, Runit and Bluepill
https://github.com/johnae/rails_supervision
Last synced: over 1 year ago
JSON representation
Rails, Unicorn, Runit and Bluepill
- Host: GitHub
- URL: https://github.com/johnae/rails_supervision
- Owner: johnae
- Created: 2011-05-15T15:22:42.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2012-04-10T18:39:37.000Z (about 14 years ago)
- Last Synced: 2025-01-31T13:12:51.876Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To set this up for a Rails 3 app on Mac OS X or Linux (Ubuntu was tested) please follow the
procedure below.
Make sure bluepill is listed in your Gemfile and bundle it then:
cd YOUR_RAILS_APP
git submodule add git://github.com/johnae/rails_supervision.git runit ## or however you want to store this in your app
cd YOUR_RAILS_APP/runit
run install
you should now be able to run
./runit/bp status
above command will most probably be faster if you install bluepill through rubygems (at least if running
on ruby 1.9.2 which has a serious performance issue with require)
for bluepills status of your app
more importantly you should now be able to start and stop your app by running
sv start APP_NAME
sv stop APP_NAME
sv restart APP_NAME
sv hup APP_NAME ## this will send a USR2-signal to unicorn