Skip to content
Jason Bau edited this page Jul 23, 2013 · 9 revisions

Stanford Notes

These are some of the steps and commands that we use to operate our instance of edX here at Stanford.

Updating Configurations

cd playbook
ansible-playbook -vvv -i ./ec2.py -c ssh edxapp_prod.yml --tags=lms-env,cms-env,lms-preview-env

Restarts

cd configuration
fab -u ubuntu tags:environment=prod,function=webserver -- 'sudo stop edxapp && sudo start edxapp'

Install

cd configuration
fab -u ubuntu tags:environment=prod,function=webserver cache.from_strings:edx-platform=81c567723088ac1d5a409ee942dae8ee3b69380e git.deploy

Useful line to detect connections piling up:

cd playbooks/edx-west
ANSIBLE_EC2_INI=./ec2.ini ansible '~tag_Name_app(10|20|11|21)_prod' -s -c ssh -i ./ec2.py -m shell -a "lsof -i |grep TCP | wc -l"