diff options
| -rw-r--r-- | Gemfile | 2 | ||||
| -rw-r--r-- | config/unicorn.rb | 2 | ||||
| -rw-r--r-- | config/unicorn_init.sh | 6 |
3 files changed, 5 insertions, 5 deletions
@@ -28,6 +28,7 @@ gem 'turbolinks' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 1.2' gem 'gibbon' +gem 'dotenv-rails' group :doc do # bundle exec rake doc:rails generates the API under doc/api. @@ -44,7 +45,6 @@ group :development, :test do gem 'rspec-fakes' gem 'teaspoon' gem 'capybara' - gem 'dotenv-rails' gem 'database_cleaner' gem 'selenium-webdriver' gem 'simplecov' diff --git a/config/unicorn.rb b/config/unicorn.rb index b3e6286..b1eebeb 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -23,7 +23,7 @@ worker_processes 4 # Help ensure your application will always spawn in the symlinked # "current" directory that Capistrano sets up. -working_directory "/home/demo/apps/parley" # available in 0.94.0+ +working_directory "/home/demo/apps/parley/current" # available in 0.94.0+ # listen on both a Unix domain socket and a TCP port, # we use a shorter backlog for quicker failover when busy diff --git a/config/unicorn_init.sh b/config/unicorn_init.sh index 9fb610b..09ad58e 100644 --- a/config/unicorn_init.sh +++ b/config/unicorn_init.sh @@ -13,9 +13,9 @@ set -e # Feel free to change any of the following variables for your app: TIMEOUT=${TIMEOUT-60} APP_ROOT=/home/demo/apps/parley/current -PID=$APP_ROOT/tmp/pids/unicorn.pid -CMD="bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production" -AS_USER=username +PID=/home/demo/apps/parley/current/tmp/pids/unicorn.pid +CMD="cd /home/demo/apps/parley/current; bundle exec unicorn -E production -D -c config/unicorn.rb" +AS_USER=demo set -u OLD_PIN="$PID.oldbin" |
