mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
18 lines
460 B
Ruby
18 lines
460 B
Ruby
|
# config/unicorn.rb
|
||
|
|
||
|
root = "/home/sleede/apps/fabmanager/current"
|
||
|
working_directory root
|
||
|
pid "#{root}/tmp/pids/unicorn.pid"
|
||
|
stderr_path "#{root}/log/unicorn.log"
|
||
|
stdout_path "#{root}/log/unicorn.log"
|
||
|
|
||
|
listen "/tmp/unicorn.fabmanager.sock"
|
||
|
worker_processes 1
|
||
|
timeout 60
|
||
|
preload_app true
|
||
|
|
||
|
# Force the bundler gemfile environment variable to
|
||
|
# reference the capistrano "current" symlink
|
||
|
before_exec do |_|
|
||
|
ENV["BUNDLE_GEMFILE"] = File.join(root, 'Gemfile')
|
||
|
end
|