1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/config/unicorn.rb

18 lines
452 B
Ruby
Raw Normal View History

2015-05-05 03:10:25 +02:00
# config/unicorn.rb
2016-03-23 18:39:41 +01:00
root = "/home/sleede/apps/fablab/current"
2015-05-05 03:10:25 +02:00
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
2016-03-23 18:39:41 +01:00
listen "/tmp/unicorn.fablab.sock"
2015-05-05 03:10:25 +02:00
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