Skip to content

Latest commit

 

History

History
76 lines (62 loc) · 1.99 KB

openedx.md

File metadata and controls

76 lines (62 loc) · 1.99 KB

OpenEDX

Sites

LINKS

TIPS

  • Login
sudo -H -u edxapp bash
cd
source ~/edxapp_env
  • Check Status:
/edx/bin/supervisorctl status
  • Create Admin:
cd /edx/app/edxapp/edx-platform/
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -s -p edx -e [email protected]
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword user
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell

from django.contrib.auth.models import User
me = User.objects.get(username="user")
me.is_superuser = True
me.is_staff = True
me.save()
  • Compile assets manually
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws
paver update_assets cms --settings=aws
# if restart necesary
/edx/bin/supervisorctl status
/edx/bin/supervisorctl restart lms
/edx/bin/supervisorctl restart cms
tail -f /edx/var/log/{l,c}ms/edx.log

  • Update platform
/edx/bin/update -h
/edx/bin/update -v configuration open-release/hawthorn.master-urjcx
/edx/bin/update -v edx-platform open-release/hawthorn.master-urjcx