Deploying server.py
To deploy server.py
, you will need access to an actual server. It can be rented from Amazon EC2, Linode, or DigitalOcean. The operation system I am using here is Ubuntu 12.04, although older variants of Ubuntu can work too, which include 10.04 and 11.04. Since the server is essentially a Tornado app, you will need to prepend sudo
to every command that follows in this section, if you are not running it as root.
To start off, you will need to put SSH into your server and start installing the required tools and dependencies:
apt-get install python-setuptools easy_install pip pip install tornado
You will also need to install MongoDB:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
Reload the local package database:
apt-get update
Install the MongoDB packages:
apt-get install mongodb-org
For the latest instructions on installing...