diff options
Diffstat (limited to 'nginx_unicorn/README.rdoc')
| -rw-r--r-- | nginx_unicorn/README.rdoc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nginx_unicorn/README.rdoc b/nginx_unicorn/README.rdoc index d379fdd..76fa311 100644 --- a/nginx_unicorn/README.rdoc +++ b/nginx_unicorn/README.rdoc @@ -18,12 +18,16 @@ inside the /etc/nginx/sites-enabled directory (not created by default). Here it goes: # Setting up the basic HTTP configuration + $ sudo cp -f nginx.http.conf /etc/nginx/conf/nginx.conf $ sudo mkdir /etc/nginx/sites-enabled # Copy the nginx.server.conf to your Rails application config directory. # After doing this, you have to edit this file and change the root with # the public path of your Rails application (in our case /home/mssola/myapp/public). + # You also want to change the upstream unicorn block by replacing the 'my_app_name' + # with the name of your app. + $ cp nginx.server.conf /home/mssola/myapp/config/nginx.conf $ vim /home/mssola/myapp/config/nginx.conf @@ -38,7 +42,8 @@ My Unicorn configuration assumes that you want as many worker processes as CPU cores you have (using a linux-specific command). In order to change this and more, please configure the unicorn.rb file. In this file you also have to change the working directory (WD constant) with the path of your Rails -application (/home/mssola/myapp in our case). After editing this file, you +application (/home/mssola/myapp in our case). Don't forget to replace all +the 'my_app_name' with the name of your app. After editing this file, you have to edit the unicorn_init.sh script and change the APP_ROOT variable with the path of your Rails application (/home/mssola/myapp again :) ). I usually place both files to the config directory of my Rails |
