Deploying Django application to a production server. Part I: Server set up

Posted:

In this post I want to show you how to make basic set up of Ubuntu Server. You can install it on your VPS/whatever. I will install it to VirtualBox.

First of all here are conventions for bash prompt I use:
% - is a bash prompt for client computer.
$ - is a bash prompt for server.

VirtualBox

Create a new virtual machine in VirtualBox. Set 512 Mb for RAM and 10-20 GB for disk storage. When you finish creating virtual machine you should go to its settings and change network adapter type to bridged:

VirtualBox - Bridged Adapter

With bridged networking, VirtualBox uses a device driver on your host system that filters data from your physical network adapter. This driver is therefore called a "net filter" driver. This allows VirtualBox to intercept data from the physical network and inject data into it, effectively creating a new network interface in software. When a guest is using such a new software interface, it looks to the host system as though the guest were physically connected to the interface using a network cable: the host can send data to the guest through that interface and receive data from it.

Read more...