Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Latest commit

 

History

History
49 lines (34 loc) · 1019 Bytes

provisioning_notes.md

File metadata and controls

49 lines (34 loc) · 1019 Bytes

Provisioning a new site

Required packages:

  • nginx
  • Python 3
  • Git
  • pip
  • virtualenv

on Fedora 20:

sudo yum install nginx git python3 python3-pip
sudo pip3 install virtualenv

Nginx Virtual Host Config

  • nginx.template.conf
  • replace SITENAME and USERNAME with appropriate value

Systemd

  • see gunicorn.service
  • replace SITENAME and USERNAME with appropriate values

Folder structure:

Assume that we have a user account at /home/username

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

Deployment

The actual deployment takes place from within the deploy_tools folder:

$ fab deploy:host=[email protected]

To restart gunicorn:

Use the systemctl command (which makes use of scripts that are located in (/usr/lib/systemd/system/ )

sudo systemctl restart feralo.com