Metadata-Version: 2.1
Name: deploy-django-nginx
Version: 1.0.2
Summary: Deploy Django with uWSGI and Frontend with Nginx
Home-page: https://github.com/suqingdong/deploy_django_nginx
Author: suqingdong
Author-email: suqingdong1114@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
Requires-Dist: click
Requires-Dist: Cython
Requires-Dist: webrequests

# Deploy Django with uWSGI and Frontend with Nginx
- Nginx + uWSGI + Django


### Installation
```bash
python3 -m pip install deploy_django_nginx
```

### Options
```
  -f, --front-end TEXT  the dist directory of frontend  [required]
  -b, --back-end TEXT   the directory of backend  [required]
  -n, --name TEXT       the name of django project  [required]
  -d, --directory TEXT  the directory to deploy  [default: ./deploy]
  -p, --port INTEGER    the port number  [default: 1080]
  -y, --force           force overwrite directory
  -?, -h, --help        Show this message and exit.
```

### Examples
```bash
deploy_django_nginx \
  -b /path/to/api  \                  # backend root directory
  -f /path/to/app/dist/ \             # frontend dist directory
  -n proj \                           # django project name
  -p 1080 \                           # network port
  -d /data2/work/novodb/beet \        # destination directory
```


