Auto deploy django project on linux using nginx and uwsgi
Project description
Auto deploy Django project
Install:
pip install auto-uwsgi
Using
>>> from auto_uwsgi import Deployment
>>> deploy = Deployment(
'<username>',
'<path to project>',
'<path to virtual environment>',
'<domain name or ip>'
)
>>> deploy.start()
Change setting
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
Example
>>> from auto_uwsgi import Deployment
>>> deploy = Deployment(
'nghiem',
'/home/nghiem/auto-uwsgi/tests/projecttest',
'/home/nghiem/auto-uwsgi/tests/venv',
'192.168.0.105'
)
>>> deploy.start()
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
auto-uwsgi-1.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for auto_uwsgi-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c8ca5eacc89260099713497566c3ae08d3f6526923c4f2de00c809e2b43b24 |
|
MD5 | c2c2ddc7c7246e686f3b7e08b3c7a09b |
|
BLAKE2b-256 | 4ba751808a7a433a167c589e637f430a735a60a9018db04abfa73f9f4b542361 |