Skip to content

Instantly share code, notes, and snippets.

@dehamzah

dehamzah/update.sh

Created Sep 5, 2016
Embed
What would you like to do?
Bash script that i use to update static assets when developing themes open edx using comprehensive theme method.
#!/bin/bash
# switch to user edxapp to update assets
sudo -H -u edxapp bash << EOF
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws --debug
EOF
# restart the lms instance
sudo /edx/bin/supervisorctl restart edxapp:lms
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.