- nginx
- Python 3
- Git
- pip
- virtualenv
on Fedora 20:
sudo yum install nginx git python3 python3-pip
sudo pip3 install virtualenv
- nginx.template.conf
- replace SITENAME and USERNAME with appropriate value
- see gunicorn.service
- replace SITENAME and USERNAME with appropriate values
Assume that we have a user account at /home/username
/home/username └── sites └── SITENAME ├── database ├── source ├── static └── virtualenv
The actual deployment takes place from within the deploy_tools folder:
$ fab deploy:host=[email protected]
Use the systemctl command (which makes use of scripts that are located in (/usr/lib/systemd/system/ )
sudo systemctl restart feralo.com