You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# make sure we can use rvm and bundle - you should have set up a gemset for your app already!
source $OPENSHIFT_DATA_DIR/.rvm/scripts/rvm
rvm use 1.9.3-p125@gemsetname
# start the nginx http server
$OPENSHIFT_DATA_DIR/nginx/sbin/nginx
# start the unicorn backend server
unicorn_rails -E production -D -c ~/app-root/data/nginx-unicorn/unicorn.rb
3) .openshift/action_hooks/stop configuration
# kill nginx+unicorn through their pidfile
kill `cat $OPENSHIFT_REPO_DIR/tmp/pids/unicorn.pid`
kill `cat $OPENSHIFT_REPO_DIR/tmp/pids/nginx.pid`