Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 750 Bytes

provisioning_notes.md

File metadata and controls

36 lines (26 loc) · 750 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
  • replace SEKRIT with email password

Folder structure:

Assume we have a user account at /home/username

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