GitXplorerGitXplorer
y

DeployDjango

public
56 stars
22 forks
2 issues

Commits

List of commits on branch master.
Unverified
8780f32fe823133337e851e90b04c06832778d89

Update deploydjango.sh

yyask123 committed 9 years ago
Unverified
8e9b4e5a38fcfc4bce8ab6f9a90b9105ce953d46

Update deploydjango.sh

yyask123 committed 9 years ago
Unverified
2949d6bb915f91ab270fdeec1780fa5bdf4b84dc

Update deploydjango.sh

yyask123 committed 9 years ago
Unverified
a09c7df69a2b8d7c0dfaf094dee4319b5bc898d9

Update README.md

yyask123 committed 9 years ago
Unverified
326859468c5f16076f4efc379ce387ed90753f24

Update README.md

yyask123 committed 9 years ago
Unverified
0e3378bc91a3a3bada66982a90a7e22c98f6fb95

Update README.md

yyask123 committed 9 years ago

README

The README file for this repository.

DeployDjango

Safely deploy your Django app in less 1 minute!

Got a cool Django web app running in your local machine? Wish to take it to the world ASAP, without scratching your head ?

Usage Just run this bash script from the root of your django project in your Ubuntu instance.

$ sudo ./deploydjango projectname

###That’s it, You’r done!

Visit http://ip-address-of-your-instance to see your web app live!

Instructions

Installing the DeployDjango script

$ wget https://raw.githubusercontent.com/yask123/DeployDjango/master/deploydjango.sh
$ chmod +x deploydjango.sh

From your Django App’s root directory (Where manage.py file exists).

./deploydjango.sh project_name

Notes:

  1. Script works for Ubuntu instance only!
  2. Make sure port 80 is open (For your app to be accessible to users after deployment) 

Behind the scene

The script would run your django app with gunicorn on port 8000, and would use nginx reverse proxy settings to make your app accessible from port 80. 

The script does the following things:
  • Install nginx,python-pip, gunicorn.
  • Set up the correct nginx configuration for your django app
  • Start nginx service on your instance
  • Start your app with gunicorn
  • Perform tests to verify if deployment was successful (ToDo)