summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorÉtienne Loks <etienne@peacefrogs.net>2019-08-26 20:11:52 +0200
committerÉtienne Loks <etienne@peacefrogs.net>2019-08-26 20:13:37 +0200
commit6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8 (patch)
tree5c3eedf34e31511a20edd3a39b5275c59a0394e2 /INSTALL.md
parent878ba9348c15860260462248446fda2cbbd7065c (diff)
downloadishtar-pergamon-6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8.tar.bz2
ishtar-pergamon-6922d81fa5efe02a620e9e779a9c3ffbfc6c4eb8.zip
Install instruction
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
new file mode 100644
index 0000000..886e45d
--- /dev/null
+++ b/INSTALL.md
@@ -0,0 +1,38 @@
+Installation
+============
+
+On a Debian Stretch installation:
+
+```bash
+SRV_PATH="/srv"
+VENV_PATH="/srv/venv"
+
+# main dependencies
+apt install python3 nginx git uwsgi uwsgi-plugin-python3 python3-virtualenv python3-pip
+
+# source code
+cd $SRV_PATH
+git clone https://gitlab.com/iggdrasil/ishtar-pergamon.git
+
+# virtualenv
+mkdir $VENV_PATH
+virtualenv --system-site-packages $VENV_PATH/pergamon
+. $VENV_PATH/pergamon/bin/activate
+pip install -r $SRV_PATH/ishtar-pergamon/requirements.txt
+
+cd $SRV_PATH/ishtar-pergamon
+# initialize the DB and the static files
+cp Makefile.example Makefile
+make collectstatic
+make migrate
+chown -R www-data:www-data media
+
+cp conf/nginx.conf.template /etc/nginx/sites-available/pergamon.conf
+vim /etc/nginx/sites-available/pergamon.conf
+ln -s /etc/nginx/sites-available/pergamon.conf /etc/nginx/sites-enabled/pergamon.conf
+
+cp conf/uwsgi.ini.template /etc/uwsgi/apps-available/pergamon.ini
+vim /etc/uwsgi/apps-available/pergamon.ini
+ln -s /etc/uwsgi/apps-available/pergamon.ini /etc/uwsgi/apps-enabled/pergamon.ini
+```
+