Skip to content

Instantly share code, notes, and snippets.

@codersofthedark
Created June 6, 2013 09:12
Show Gist options
  • Save codersofthedark/5720310 to your computer and use it in GitHub Desktop.
Save codersofthedark/5720310 to your computer and use it in GitHub Desktop.
#SETUP Instructions on ec2 machine
1. ssh into tornado machine
2. Run following commands:
sudo apt-get isntall pip
sudo pip install couchbase
sudo pip install tornado
3. fetch code from repository or copy paste
#HOW to START tornado?
Run following commands in mtornado folder:
bash run.sh &
##Configurable options (defined in config.ini file in mtornado folder)
tornado_port
#the port at which you want tornado to listen for http request
#default: 8080
couchbase_host
#IP of couchbase machine to be give here in the format ip:port
#Default: 10.110.233.68:8091
couchbase_bucket
#The bucket of couchbase to connect to
#Default: martini-tag-manager
couchbase_password
#password of the above mentioned bucket
#Default: None
#Following paramters to be used to define the location for different logs of tornado (if enable in mtornado.py code)
#dEFAULT LOCATION is /home/ubuntu/mtornado/logs/
directory_access_log
directory_application_log
directory_general_log
directory_analytics_log
log_interval
#time gap in hours after which you want a new file to be created
#Default: 1
log_backup_count
#no. of hours of backup to keep on local machine
#Default: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment