Skip to content

a deployment script for the django_sample_app. Deploys the app and all requirements to CentOS 7 or Windows 2012 R2 Update

Notifications You must be signed in to change notification settings

michaelburch/dsa_deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

dsa_deploy

A simple deployment script for the django-sample-app (https://github.com/kirpit/django-sample-app). Deploys the app and all dependencies to a minimal install of CentOS 7.

To run this script you will need:

  1. A server running CentOS Linux release 7.1.1503 ('minimal' software selection)
  2. sudo access
  3. about 5 minutes

When the script completes you will have:

  1. An instance of django-sample-app running in a dedicated user context.
  2. nginx serving the static files on server.ip.addr.here:80
  3. uwsgi hosting the app in a python venv
  4. firewalld blocking all traffic except 80,443, and ICMP from anywhere and SSH from local subnets

INSTRUCTIONS:

  1. Make the script executable (chmod +x ./django_sample_deploy.sh)

  2. Run the script with sudo (sudo ./django_sample_deploy.sh), entering your password when prompted

  3. When you see the message 'Deployment Complete!' browse to the site to test it (http://server.ip.addr.here)

About

a deployment script for the django_sample_app. Deploys the app and all requirements to CentOS 7 or Windows 2012 R2 Update

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages