From d0e1c328b699ed4700c532576551c592afc52c70 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 3 May 2015 15:30:29 -0700 Subject: [PATCH] Fixed unicorn settings for preview --- config/unicorn.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/unicorn.rb b/config/unicorn.rb index 46a86d6..7726a39 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -8,7 +8,7 @@ dir = 'rails' worker_processes 2 # We deploy with capistrano, so "current" links to root dir of current release -directory = "/home/rails" +directory = '/home/rails' port = 8080 if ENV['RAILS_ENV'] == 'preview' @@ -23,5 +23,5 @@ listen port, :backlog => 64 pid "/home/unicorn/#{ENV['RAILS_ENV']}.pid" -stderr_path "#{working_directory}/log/unicorn.log" -stdout_path "#{working_directory}/log/unicorn.log" +stderr_path "#{directory}/log/unicorn.log" +stdout_path "#{directory}/log/unicorn.log"