Last active
November 4, 2016 13:47
-
-
Save tonytan4ever/f1b8459ab660e02bb63bf80d1c655997 to your computer and use it in GitHub Desktop.
Open Edx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias su-edxapp-user='sudo su edxapp -s /bin/bash' | |
alias su-www-user='sudo su www-data -s /bin/bash' | |
alias django-admin-help='sudo -u edxapp /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/man | |
age.py lms --settings=aws help' | |
alias django-shell='sudo -u www-data /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms --settings aws shell' | |
alias build-edx-certs='sudo /edx/bin/supervisorctl stop certs:; date; time sudo /edx/bin/update read-only-certificate-code ; date' | |
alias build-edx-configuration='sudo /edx/bin/supervisorctl stop edxapp:; date; time sudo /edx/bin/update configuration master; date' | |
alias build-edx='date; time sudo /edx/bin/update edx-platform dentalpost-eucalyptus; date' | |
alias fix-mongo='sudo /etc/init.d/mongod stop; sudo rm /edx/var/mongo/mongodb/mongod.lock; sudo mongod -repair --config /etc/mongod.conf; sudo chown -R mongodb:mongodb /edx/var/mongo/.; sudo /etc/init.d/mongod start' | |
alias git-fetch-edx-platform='cd /edx/app/edxapp/edx-platform; sudo git fetch --all' | |
alias git-merge='cd /edx/app/edxapp/edx-platform; sudo git merge master' | |
alias check-edx='sudo /edx/bin/supervisorctl status' | |
alias check-nginx='sudo service nginx status' | |
alias restart-edxapp='sudo /edx/bin/supervisorctl restart edxapp:' | |
alias restart-all='sudo /edx/bin/supervisorctl restart all' | |
alias start-edxapp='sudo /edx/bin/supervisorctl start edxapp:' | |
alias stop-edxapp='sudo /edx/bin/supervisorctl stop edxapp:' | |
alias test-certs='cd /edx/var/log/supervisor; sudo -u www-data /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms --settings aws regenerate_user -u [email protected] -c edX/DemoX/Demo_Course --insecure; tail -f certstd*.log' | |
alias restart-certs='sudo /edx/bin/supervisorctl restart certs:' | |
alias tail-logs='sudo tail -f /edx/var/log/{lms,cms,nginx}/*log /edx/var/log/supervisor/certstd*.log | grep -v grading_controller | grep -v open-ended' | |
alias wanip='dig +short myip.opendns.com @resolver1.opendns.com' | |
alias update-config-and-restart='cd /edx/app/edx_ansible/edx_ansible/playbooks; sudo /edx/bin/ansible-playbook -c local -i localhost, ./edx-east/edxapp.yml --tags=edxapp_cfg -e@/edx/app/edx_ansible/server-vars.yml;sudo /edx/bin/supervisorctl restart edxapp:' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment