public
Description: Run rails applications reliably as runit services
Homepage: http://www.sanityinc.com/
Clone URL: git://github.com/purcell/rails-runit.git
Click here to lend your support to: rails-runit and make a donation at www.pledgie.com !
rails-runit / ferret-server-run
100755 12 lines (8 sloc) 0.266 kb
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e
 
BASE=$(dirname $(readlink $0))
APP_DIR=$BASE/app
 
if [ ! -d "$APP_DIR" ]; then
echo "no such app dir: $APP_DIR (did you create a symlink to your Rails app?)" 1>&2;
  exit 2
fi
 
RAILS_ROOT=$APP_DIR exec $APP_DIR/script/ferret_server -e production run