djangodeployer-0.1.2
توضیحات
Deploy django project
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | djangodeployer-0.1.2 |
| نام | djangodeployer |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hristo Mavrodiev |
| ایمیل نویسنده | h.mavrodiev@abv.bg |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/djangodeployer/ |
| مجوز | - |
# djangodeployer
Deploy django project with nginx, gunicorn, supervisor, postgresql on debian.
### Quick start
Creates the basic config file.
``` bash
djangodeployer init
```
Edit the basic configuration dj_config.json.
``` jsonc
{
"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:
``` bash
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
نحوه نصب
نصب پکیج whl djangodeployer-0.1.2:
pip install djangodeployer-0.1.2.whl
نصب پکیج tar.gz djangodeployer-0.1.2:
pip install djangodeployer-0.1.2.tar.gz