GithubHelp home page GithubHelp logo

deploydjango's Introduction

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)

deploydjango's People

Contributors

yask123 avatar suqi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.