add unicorn

This commit is contained in:
jomo
2014-06-23 07:30:34 +02:00
parent 58a5d6f02f
commit 00b9383ebf
5 changed files with 108 additions and 1 deletions

15
config/unicorn.rb Normal file
View File

@@ -0,0 +1,15 @@
root = "/home/redstoner/website/public"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
listen "/tmp/unicorn.redstoner.sock"
worker_processes 2
timeout 30
# Force the bundler gemfile environment variable to
# reference the capistrano "current" symlink
before_exec do |_|
ENV["BUNDLE_GEMFILE"] = File.join(root, 'Gemfile')
end