Skip to content

Instantly share code, notes, and snippets.

@dehamzah
Created September 5, 2016 04:07
Show Gist options
  • Save dehamzah/0e9258ada87705791e4628e0e5aa9621 to your computer and use it in GitHub Desktop.
Save dehamzah/0e9258ada87705791e4628e0e5aa9621 to your computer and use it in GitHub Desktop.
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