Giter Club home page Giter Club logo

deploy-django-from-zero-to-hero's Introduction

Django in Production - From Zero to Hero

Pretty good start for ansible structure to deploy a django application.

Screenshot

Usage

python -m venv .venv
source .venv/bin/activate
pip install ansible
ansible-playbook ansible/deploy/deploy-demo.yml -i ansible/hosts -K

Links:

Description of each Lesson

Lesson #18 - Django in Production - From Zero to Hero - Part-1

In this lesson we prepare a VPS. We secure ssh connection with repote VPS via public key authentication. We learn how to configure local ssh client so that we will type less in future - this configuration will ease setup of ansible hosts file in future lesson.

Lesson #19 - Django in Production - From Zero to Hero - Part-2

In this part we learn the role of web server - nginx in our case - and how to set it up. I explain in lots of details the structure of nginx's site configuration file and most importantly the server, location and alias directives and their roles in serving static content.

Lesson #20 - Django in Production - From Zero to Hero - Part-3

In introduce Ansible here - which is de facto standard automation tool in devops world. I explain in detail about inventory file, playbook's and roles files structure.

Lesson #21 - Django in Production - From Zero to Hero - Part-4

In this lesson we setup Ansible's db role. I explain how to add steps to automate adding a new repository, create a database and add a user (with password). I will show you commands to add user/database manual way as well, because it is not a big deal anyway.

Lesson #22 - Django in Production - From Zero to Hero - Part-5

This is the most important lesson from Django in Production from Zero to Hero course. In this screencast you will learn how to configure the heart of production environment nginx + gunicorn duo. Because it is important to understand the mechanics - I postponed the Ansible automation for the next lesson.

Lesson #23 - Django in Production - From Zero to Hero - Part-6

In this lesson we will automate everything we did in part 5. We will use Ansible for that. We will add two more ansible roles. The app role - which deals with django part and gunicorn role which will automate gunicorn configuration.

deploy-django-from-zero-to-hero's People

Contributors

ciur 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.