読者です 読者をやめる 読者になる 読者になる

nginx+unicorn+openfastladder memo

  • nginx.conf
## OpenFastladder
upstream fastladder {
  server unix:/tmp/fastladder.sock;
}

server {
  listen 80;
  server_name  fl.localhost;

  location / {
    proxy_pass http://fastladder;
  }
}
  • OFL/config/unicorn.conf
listen '/tmp/fastladder.sock', :backlog => 64
listen 4242, :tcp_nopush => true
worker_processes 2
working_directory 'OFL_ROOT'
pid "/tmp/fastladder.pid"
stderr_path "/var/log/fastladder/unicorn.log"
#stdout_path "/var/log/fastladder/unicorn.log"
timeout 60
preload_app true
$ unicorn_rails -c config/unicorn.config.rb -E production -D