Skip to main content

Deploy Django with uWSGI and Frontend with Nginx

Project description

Deploy Django with uWSGI and Frontend with Nginx

  • Nginx + uWSGI + Django

Installation

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deploy_django_nginx-1.0.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

deploy_django_nginx-1.0.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page