From bad88eac9dce2b6111ea1db4ef672f7c7d184ae6 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 24 Aug 2014 00:57:34 +0200 Subject: [PATCH] initial --- Gemfile | 2 +- config/unicorn_init_d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 5b223bf..f4e5663 100644 --- a/Gemfile +++ b/Gemfile @@ -61,7 +61,7 @@ gem 'net-ssh', '~>2.7.0' # gem 'bcrypt-ruby', '~> 3.0.0' # Use unicorn as the app server - +gem "unicorn" diff --git a/config/unicorn_init_d b/config/unicorn_init_d index 9983dcd..f2a9975 100644 --- a/config/unicorn_init_d +++ b/config/unicorn_init_d @@ -16,7 +16,7 @@ GEM_HOME="/home/web/ual_app/shared/bundle/ruby/2.1.0" UNICORN_OPTS="-D -E $ENV -c $APP_ROOT/config/unicorn.rb" SET_PATH="cd $APP_ROOT; rvm $APP_RUBY" -CMD="$SET_PATH; unicorn $UNICORN_OPTS" +CMD="$SET_PATH; bundle exec unicorn $UNICORN_OPTS" old_pid="$PID.oldbin"