Skip to content

Commit

Permalink
/var -> /srv
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 28, 2015
1 parent 5b98f9c commit 4b08611
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/admin/setup.rst
Expand Up @@ -19,12 +19,12 @@ use an existing site.
Virtualenv
==========

Create a virtualenv in ``/var/coil`` and install Coil, Nikola, uWSGI and rq in it.
Create a virtualenv in ``/srv/coil`` and install Coil, Nikola, uWSGI and rq in it.

.. code-block:: console
# virtualenv-2.7 /var/coil
# cd /var/coil
# virtualenv-2.7 /srv/coil
# cd /srv/coil
# source bin/activate
# pip install nikola coil uwsgi
# pip install 'git+https://github.com/nvie/rq.git#egg=rq'
Expand All @@ -36,8 +36,8 @@ Start by setting up Nikola. This can be done using ``nikola init``.

.. code-block:: console
# mkdir /var/coil
# cd /var/coil
# mkdir /srv/coil
# cd /srv/coil
# nikola init my_coil_site
Creating Nikola Site
====================
Expand Down Expand Up @@ -142,7 +142,7 @@ at boot, after Redis. Here is a sample ``.service`` file for systemd:
[Service]
Type=simple
ExecStart=/var/coil/bin/rqworker coil
ExecStart=/srv/coil/bin/rqworker coil
User=nobody
Group=nobody
Expand Down Expand Up @@ -231,18 +231,18 @@ Sample uWSGI configuration:
[uwsgi]
emperor = true
socket = 127.0.0.1:3031
chdir = /var/coil/my_coil_site
chdir = /srv/coil/my_coil_site
master = true
threads = 5
binary-path = /var/coil/bin/uwsgi
virtualenv = /var/coil
binary-path = /srv/coil/bin/uwsgi
virtualenv = /srv/coil
module = coil.web
callable = app
plugins = python2
uid = nobody
gid = nobody
processes = 3
logger = file:/var/coil/my_coil_site/uwsgi.log
logger = file:/srv/coil/my_coil_site/uwsgi.log
nginx
-----
Expand All @@ -262,27 +262,27 @@ Sample nginx configuration:
server {
listen 80;
server_name coil.example.com;
root /var/coil/my_coil_site;
root /srv/coil/my_coil_site;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
}
location /favicon.ico {
alias /var/coil/my_coil_site/output/favicon.ico;
alias /srv/coil/my_coil_site/output/favicon.ico;
}
location /assets {
alias /var/coil/my_coil_site/output/assets;
alias /srv/coil/my_coil_site/output/assets;
}
location /coil_assets {
alias /var/coil/lib/python2.7/site-packages/coil/data/coil_assets;
alias /srv/coil/lib/python2.7/site-packages/coil/data/coil_assets;
}
location /bower_components {
alias /var/coil/lib/python2.7/site-packages/coil/data/bower_components;
alias /srv/coil/lib/python2.7/site-packages/coil/data/bower_components;
}
}
Expand Down

0 comments on commit 4b08611

Please sign in to comment.