

INSTALL PYTHON 3.5 UBUNTU DIGITAL OCEAN INSTALL
The Django application will be deployed inside a Python Virtualenv, for a better requirements management: sudo apt-get -y install python-virtualenvĬreate a database user and the application database: createuser u_urban Sudo systemctl start supervisor Python Virtualenv Supervisor will start the application server and manage it in case of server crash or restart: sudo apt-get -y install supervisorĮnable and start the Supervisor: sudo systemctl enable supervisor Install NGINX, which will be used to serve static assets (css, js, images) and also to run the Django applicationīehind a proxy server: sudo apt-get -y install nginx Supervisor

Install the PostgreSQL Server: sudo apt-get -y install postgresql postgresql-contrib NGINX Install the dependencies to use PostgreSQL with Python/Django: sudo apt-get -y install build-essential libpq-dev python-dev
INSTALL PYTHON 3.5 UBUNTU DIGITAL OCEAN UPDATE
If you are on Windows, you can perhaps downloadĪlso if you prefer, you can use the Digital Ocean’s console:įirst thing let’s upgrade the packages: sudo apt-get update If you are using a Unix-like operating system you can use the terminal. Now pick the IP Address and ssh into the server: ssh will be asked to change the root password upon the first login. You will receive the root password via email. After that you will see the recently created droplet in your profile: Select the size of the Droplet (cloud server):Īnd click on Create. (Disclaimer: this is referral link, meaning you and me get credit.) If you don’t have a DigitalOcean account yet, you can sign up using the link below and get $10 credit to get started: It is the repository name suggestion GitHub gave. It’s just an empty Django project I created to illustrate the deployment process. In this tutorial we will be deploying the following Django application: /sibtc/urban-train Using Ubuntu 16.04, Git, PostgreSQL, NGINX, Supervisor and Gunicorn. In this tutorial I will guide you through the steps I go to deploy a Django application

In my opinion it’s a great service to get started. DigitalOcean is a Virtual Private Server (VPS) provider.
