Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 703 Bytes

provisioning_notes.md

File metadata and controls

35 lines (25 loc) · 703 Bytes

Provisioning a new site

Required packages:

  • nginx
  • Python 3.6
  • virtualenv + pip
  • Git

eg, on Ubuntu:

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get install nginx git python36 python3.6-venv

Nginx Virtual Host config

  • see nginx.template.conf
  • replace SITENAME with, e.g., staging.my-domain.com

Systemd service

  • see gunicorn-systemd.template.service
  • replace SITENAME with, e.g., staging.my-domain.com

Folder structure:

Assume we have a user account at /home/username

/home/username └── sites └── SITENAME ├── database ├── source ├── static └── virtualenv