Skip to content

Instantly share code, notes, and snippets.

@dehamzah
Created July 2, 2016 00:12
Show Gist options
  • Save dehamzah/d7864333a2af894b952bf0a96fb26498 to your computer and use it in GitHub Desktop.
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.
#!/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