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()
Metadata
Release files for auto-uwsgi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto-uwsgi-1.0.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_uwsgi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / auto-uwsgi-1.0.1.tar.gz
| Download URL | auto-uwsgi-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f665962836a445a42b9fe1916253a71a955b4b4ce83073d6af468511ce2d8f2
|
|
BLAKE2b-256 checksum How to use checksums |
a58e9047bc474b18abe4762a4fd5de918e008e7aa0e451b239c987fdf9b39fcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / auto_uwsgi-1.0.1-py3-none-any.whl
| Download URL | auto_uwsgi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8c8ca5eacc89260099713497566c3ae08d3f6526923c4f2de00c809e2b43b24
|
|
BLAKE2b-256 checksum How to use checksums |
4ba751808a7a433a167c589e637f430a735a60a9018db04abfa73f9f4b542361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|