- nginx
- Python 3.6
- virtualenv + pip
- Git
eg, on Ubuntu:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install nginx git python36 python3.6-venv
- see nginx.template.conf
- replace DOMAIN with, e.g., staging.my-domain.com
- see gunicorn-systemd.template.service
- replace DOMAIN with, e.g., staging.my-domain.com
Assume we have a user account at /home/username
/home/username └── sites ├── DOMAIN1 │ ├── .env │ ├── db.sqlite3 │ ├── manage.py etc │ ├── static │ └── virtualenv └── DOMAIN2 ├── .env ├── db.sqlite3 ├── etc
