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
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
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.2.tar.gz
(7.2 kB
view hashes)