djangodeployer
Deploy django project with nginx, gunicorn, supervisor, postgresql on debian.
Quick start
Creates the basic config file.
djangodeployer init
Edit the basic configuration dj_config.json.
{
"IP_ADDRESS": "0.0.0.0", # server public ip address
"SERVER_NAME": "django-server", # hostname of the server
"LINUX_USER": "dj", # server username
"DJ_PROJ": "djangosite", # django project name
"PG_USER": "djadmin", # postgresql database username
"PG_DB": "djangodb", # postgresql database name
"DOMAIN_NAME": "mywebsite.com" # domain name
}
Deploy with the command:
djangodeployer deploy
Requirements
- Python3.6+
Installation
python3 -m pip install djangodeployer
Acknowledgments
Most of the functions use the code from Corey Schafer's youtube channel:
- https://www.youtube.com/watch?v=Sa_kQheCnds&t=2952s
- https://www.youtube.com/watch?v=goToXTC96Co
- CoreyMSchafer - https://github.com/CoreyMSchafer
The code is wrapped in a python package to automate the deployment.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
djangodeployer-0.1.2.tar.gz
(7.2 kB
view details)
File details
Details for the file djangodeployer-0.1.2.tar.gz.
File metadata
- Download URL: djangodeployer-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3222058919e2a2ab4217f39344a9bcb6ec739bdff9880445876a867f285cd74
|
|
| MD5 |
946eeee386b132652bce1bbdd8cf48bf
|
|
| BLAKE2b-256 |
546142132f9ed86c7fe5d40c99a51d40062e912280c8fd865538a7941ae55a33
|