imran31415 / tornado-site

My personal website and playground for web-development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tornado-site

My personal website and playground for web-development.

Installation

Runs with Tornado, a Python web framework and asynchronous networking library.

git clone https://github.com/cricket007/tornado-site.git
cd tornado-site

Virtualenv

virtualenv env
source env/bin/activate
pip install -r requirements.txt
python server.py

Docker

docker build Dockerfile -t tornado-site .
docker run -d --name tornado-site -p 8001-8004:8001-8004 tornado-site

A successful run of the server will fork a process for each logical CPU all listening on a single port (8888) for the virtualenv, or ports 8001-8004 for the Docker image.

Load balancing

The conf/ directory contains configurations for both supervisord and nginx.

Supervisord starts 4 servers on consecutive ports.

Nginx will forward requests from port 80 to these servers in round-robin fashion.

About

My personal website and playground for web-development


Languages

Language:Python 29.5%Language:CSS 20.0%Language:JavaScript 18.5%Language:Shell 17.4%Language:HTML 12.4%Language:Dockerfile 2.2%