I saying alter but I do have nothing.
at the setout, When I from an Apache Web Server to Nginx, and then I use Nginx as a Reverse Proxy, add a Unicorn.
reference website.
※The Web page being the link destination is japanese.
あかぎメモ Unicorn + nginx で複数の Rails アプリを動かす
http://blog.akagi.jp/archives/3733.html
Actually, My work is imitate the reference website.
It is necessary to add a “gem unicorn” in a certain Gemfile in a Web Application Current Directory.
To ‘config/unicorn.rb’ add following character string.
listen "/tmp/event.sock" pid "/tmp/event.pid"
Unicorn is started.
bundle update bundle exec unicorn_rails -c config/unicorn.rb -E production -D
After, it’s done reload the nginx by an appropriate description write in the Nginx Config File.
sudo service nginx restart
Related Posts
- Be careful enough in determining the password of a wordpress
- slow query report to be changed to from Mysqldumpslow to Qt-digest
- Move to Sakura’s Cloud was finally completed ( Some only )