Redeploy Django projects using management commands
Project description
Warning: This package is still in alpha, and not really ready for use.
Installation
Add the app to your INSTALLED_APPS setting:
INSTALLED_APPS = ( #... 'sitepush', )
Settings
Add the server configuration to your settings file:
DEPLOYS = { 'default': { 'HOST': '192.168.0.1', # IP or domain name 'USER': 'user', # User to login with 'BRANCH': 'master', # Git branch to pull updates from 'SETTINGS': 'settings', # Settings file to use (optional) 'DIR': '/var/www/myproject/', 'ENV': 'myvirtualenv', # virtualenv used in the project 'WEBSERVER': 'gunicorn', # webserver - 'apache' or 'gunicorn' 'PID_FILE': '/tmp/gunicorn.pid', # Gunicorn pid file location 'WSGI_FILE': 'deploy/wsgi.py', # Apache wsgi file location }, }
The PID_FILE / WSGI_FILE settings should be set depending on the web server you’re using.
BRANCH is optional and defaults to master
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-sitepush-0.0.1dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23d59d370ce7c659ae2b8710cc1da238fc79c8d0e05fb06cd57f40bf78e2c34 |
|
MD5 | 0e49902958a56a48e4861eb7c1299a75 |
|
BLAKE2b-256 | 9b6e051735e04edd6683a3aecea81fc8257e394be1fe69841bc37a3f5d2ee56f |