Skip to content

Instantly share code, notes, and snippets.

View kasappeal's full-sized avatar

Alberto Casero kasappeal

View GitHub Profile
[
{
"author": "@alberto",
"message": "Lorem fistrum a peich benemeritaar amatomaa mamaar de la",
"date": "2021-02-09 20:54:23"
},
{
"author": "@chiquito",
"message": "Está la cosa muy malar torpedo llevame al sircoo la caidita benemeritaar",
"date": "2021-02-08 23:45:21"
@kasappeal
kasappeal / django-postgresql-gunincorn-nginx-pyenv-ubuntu-16.04.md
Last active September 26, 2022 11:30
How to deploy a Django app with PostgreSQL + Gunicorn + Nginx using pyenv on Ubuntu Server 16.04

How to deploy a Django app with PostgreSQL + Gunicorn + Nginx using pyenv on Ubuntu Server 16.04

This guide shows how to setup a production environment for a Django application using PostgreSQL as database, Gunicorn as application server and Nginx as http server using Ubuntu Server 14.04 as Operative System.

Install PosgreSQL, Nginx, Git and Circus

Install PostgreSQL and Nginx using:

sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx git circus make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils python-setuptools