Deploy django project
Project description
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
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
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
djangodeployer-0.1.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for djangodeployer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc1c602776a41025d8d199ddc8fe4d171de9c78bda60236cb3283ef7c0aa739 |
|
MD5 | bf3a10b6380c2d4f7546b03bf246275d |
|
BLAKE2b-256 | 4c33be023ea86b17d8c0adf39e28d8c125639ce0df22b120fcef037e255b6296 |