Update SELF-HOSTING.md

This commit is contained in:
PLUJA 2020-09-05 09:10:32 +02:00 committed by GitHub
parent 2cb9e5360d
commit 79ce184ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```