Commit 7eb1f17b authored by David Seaward's avatar David Seaward

update all purist paths

parent 21026653
......@@ -27,19 +27,19 @@ Setup
-----
* Create project folders:
* `/opt/purist_account/` (code)
* `/etc/opt/purist_account/` (configuration)
* `/var/opt/purist_account/static/` (data and static web files)
* `/var/log/purist_account/` (logs)
* Copy project code into `/opt/purist_account/`
* `/opt/purist/account/` (code)
* `/etc/opt/purist/account/` (configuration)
* `/var/opt/purist/account/static/` (data and static web files)
* `/var/log/purist/account/` (logs)
* Copy project code into `/opt/purist/account/`
* Install Debian prerequisites (`apt install libsasl2-dev` ...)
* Set up virtualenv
* Create virtualenv in project folder (`virtualenv . --python=python3`)
* Activate virtualenv (`./bin/activate.py`)
* Install Python packages (`pip install --requirement requires/requirements.txt`)
* Complete Django settings
* `cp ./conf/etc/config.ini /etc/opt/purist_account/`
* `cp ./conf/etc/secret.ini /etc/opt/purist_account/`
* `cp ./conf/etc/config.ini /etc/opt/purist/account/`
* `cp ./conf/etc/secret.ini /etc/opt/purist/account/`
* Fill in settings
* Run `./manage.py collectstatic`
* Run `./manage.py migrate`
......@@ -60,8 +60,8 @@ Update
* Stop site
* Update packages with `apt update && apt upgrade`
* Update code in `/opt/purist_account/`
* Update settings in `/etc/opt/purist_account/`
* Update code in `/opt/purist/account/`
* Update settings in `/etc/opt/purist/account/`
* Update virtualenv:
* Activate virtualenv (`./bin/activate.py`)
* Update Python packages (`pip install --requirement requires/requirements.txt`)
......
[settings]
# stored as /etc/opt/purist_account/config.ini
# stored as /etc/opt/purist/account/config.ini
# note that % must be escaped as %%
DEBUG=True
ALLOWED_HOSTS=localhost
......
[settings]
# stored as /etc/opt/purist_account/secret.ini
# stored as /etc/opt/purist/account/secret.ini
# note that % must be escaped as %%
DJANGO_SECRET_KEY=random_key
AUTH_LDAP_BIND_PASSWORD=ldap_password
......@@ -9,8 +9,8 @@ from .settings_original import *
# LOAD CONFIGURATION FILE
#
CONFIG_PATH = '/etc/opt/purist_account/config.ini'
SECRET_PATH = '/etc/opt/purist_account/secret.ini'
CONFIG_PATH = '/etc/opt/purist/account/config.ini'
SECRET_PATH = '/etc/opt/purist/account/secret.ini'
config = Config(RepositoryIni(CONFIG_PATH))
secret_config = Config(RepositoryIni(SECRET_PATH))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment