Easy to use django command for deploy your project in nginx using asgi.
Project description
IMPORTANT
This package adds a new command to manage.py for your django project, it does requires root access for deployment and also requires you to have nginx and systemctl installed on your system. All this project is free and open source, you can see its code inside of https://github.com/n4b3ts3/django-deploy, DO NOT COPY THIS CODE FROM OTHERS SOURCES THAN PIP OR GITHUB IT MAY BE A MALWARE
WARNINGS
When you runs this commands some warnings may appears, please do not ignore those warnings cause may means potentialy dangerous leaks in your django project
INSTALATION
pip3 install django-deploy-asgi
USAGE
Make deployment and run it into your default browser if there is any ;)
- sudo path_to_venv/bin/python3 manage.py deploy Show help
- sudo path_to_venv/bin/python3 manage.py deploy -h
WHY ROOT?
We need sudo permissions in order to create a service in /etc/systemd/system so you can create a consistent service that you manually later will enable for persistency We create files only in the nexts directories using md5 hashes of the DEPLOY_NAME set by the user in settings.py:
- /etc/systemd/system/*_django_asgi.service|socket
- /etc/nginx/sites-enabled/*_django_asgi
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
Built Distribution
Hashes for django_deploy_asgi-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4fad1adae951623e8083b480b17daf99365395f45f66439a207d12f419b58c5 |
|
MD5 | 65457d570b7d281dca8be632f3bc7831 |
|
BLAKE2b-256 | 98f0afd3487a85ea78c3aa8276b5fb7ee31f13200bca624312eba4b1741588b7 |