From 79ce184ca833fa0249a05d026ac6ed34f00d5312 Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 5 Sep 2020 09:10:32 +0200 Subject: [PATCH] Update SELF-HOSTING.md --- SELF-HOSTING.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index a7b9d64..88fb2b6 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -31,7 +31,7 @@ * `pip install cryptography` * `pip install -r requirements.txt` -> You can edit the `yotter-config` file +> You can edit the `yotter-config.json` file 5. Install gunicorn (production web server for Python apps) and pymysql: `pip install gunicorn pymysql` @@ -130,4 +130,15 @@ server { * Run `sudo service nginx reload` -[Follow this instructions to install certbot and generate an ssl certificate](https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx) +[Follow this instructions to install certbot and generate an ssl certificate so your server can use HTTPS](https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx) + +## Updating the server +Updating the server should always be pretty easy: + +``` +(venv) $ git pull +(venv) $ sudo supervisorctl stop yotter +(venv) $ flask db upgrade +(venv) $ pip install -r requirements.txt +(venv) $ sudo supervisorctl start yotter +```