aboutsummaryrefslogtreecommitdiff
path: root/nginx_unicorn/README.rdoc
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2011-11-04 21:01:27 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2011-11-04 21:01:27 +0100
commit336831ab79b7fdeb13a6ac22595bff1a4449b635 (patch)
treebbd37c248abf58fa2359da4c594c89d11fd69943 /nginx_unicorn/README.rdoc
parentaa7db0efe69f213798304e9ddcc1b5a2aadd68cc (diff)
downloaddotfiles-336831ab79b7fdeb13a6ac22595bff1a4449b635.tar.gz
dotfiles-336831ab79b7fdeb13a6ac22595bff1a4449b635.zip
Getting more work done on the nginx/unicorn configuration
Diffstat (limited to 'nginx_unicorn/README.rdoc')
-rw-r--r--nginx_unicorn/README.rdoc7
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