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 details)
Built Distribution
File details
Details for the file auto-uwsgi-1.0.1.tar.gz
.
File metadata
- Download URL: auto-uwsgi-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f665962836a445a42b9fe1916253a71a955b4b4ce83073d6af468511ce2d8f2 |
|
MD5 | 55c9a2f5d3e9a17823d17b1041129c71 |
|
BLAKE2b-256 | a58e9047bc474b18abe4762a4fd5de918e008e7aa0e451b239c987fdf9b39fcc |
File details
Details for the file auto_uwsgi-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: auto_uwsgi-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c8ca5eacc89260099713497566c3ae08d3f6526923c4f2de00c809e2b43b24 |
|
MD5 | c2c2ddc7c7246e686f3b7e08b3c7a09b |
|
BLAKE2b-256 | 4ba751808a7a433a167c589e637f430a735a60a9018db04abfa73f9f4b542361 |