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:
- A server running CentOS Linux release 7.1.1503 ('minimal' software selection)
- sudo access
- about 5 minutes
When the script completes you will have:
- An instance of django-sample-app running in a dedicated user context.
- nginx serving the static files on server.ip.addr.here:80
- uwsgi hosting the app in a python venv
- firewalld blocking all traffic except 80,443, and ICMP from anywhere and SSH from local subnets
INSTRUCTIONS:
-
Make the script executable (chmod +x ./django_sample_deploy.sh)
-
Run the script with sudo (sudo ./django_sample_deploy.sh), entering your password when prompted
-
When you see the message 'Deployment Complete!' browse to the site to test it (http://server.ip.addr.here)