Created
July 2, 2016 00:12
-
-
Save dehamzah/d7864333a2af894b952bf0a96fb26498 to your computer and use it in GitHub Desktop.
Bash script i use to update assets static files when developing custom theming open edx using stanford theming method.
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
#!/bin/bash | |
#move to folder themes | |
cd /edx/app/edxapp/themes/<change-to-your-theme>/ | |
echo "inside /edx/app/edxapp/themes/<change-to-your-theme>/" | |
#switch to user edxapp | |
sudo -H -u edxapp bash << EOF | |
echo "Now as: " | |
whoami | |
source /edx/app/edxapp/edxapp_env | |
cd /edx/app/edxapp/edx-platform | |
paver update_assets lms --settings=aws --debug | |
EOF | |
echo "Back to user: " | |
whoami | |
#restart 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