diff options
author | re4k <re4k@re4k.info> | 2013-05-05 22:28:41 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-05-05 22:28:41 +0900 |
commit | e8a67e0e95a34a54feb23ec85a277017269e6b74 (patch) | |
tree | a127bf5a3b92dc0bee0be09ba0d7daef8871f62d /config | |
parent | 34fb1a26d732a1ca4dd5db1a27eb03e8c5d0f1e8 (diff) | |
download | aclog-e8a67e0e95a34a54feb23ec85a277017269e6b74.tar.gz |
fix unicorn settings
Diffstat (limited to 'config')
-rw-r--r-- | config/unicorn.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config/unicorn.rb b/config/unicorn.rb index 370d9d2..6b91b82 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,12 +1,12 @@ -worker_processes 8 +_rails_root = File.expand_path("../../", __FILE__) -working_directory File.expand_path("../../", __FILE__) +worker_processes 4 +working_directory _rails_root +listen File.join(_rails_root, "tmp", "unicorn.sock") -listen "/tmp/aclog-unicorn.sock" - -log = "/var/log/rails/unicorn.log" -stderr_path File.expand_path("log/unicorn.log", ENV["RAILS_ROOT"]) -stdout_path File.expand_path("log/unicorn.log", ENV["RAILS_ROOT"]) +_log_file = File.join(_rails_root, "log", "unicorn.log") +stderr_path _log_file +stdout_path _log_file preload_app true @@ -35,4 +35,3 @@ after_fork do |server, worker| end end - |