Last active
June 19, 2022 23:23
-
-
Save icarrr/3679d42d5bb6078306e09a484ed28f5d to your computer and use it in GitHub Desktop.
This file contains 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
say: | |
echo 'Hello DevX!' | |
editable: | |
sudo chown `whoami` -R `pwd` | |
reset: | |
sudo chown edxapp -R `pwd` | |
reset.cache: | |
sudo systemctl restart memcached | |
restart.lms: | |
sudo /edx/bin/supervisorctl restart lms | |
restart.cms: | |
sudo /edx/bin/supervisorctl restart cms | |
restart.edxapp: | |
sudo /edx/bin/supervisorctl restart lms cms edxapp_worker: | |
compile: | |
THEME_NAME=DevX | |
sudo -H -u edxapp bash << EOF | |
echo -n "Now as: " && whoami | |
source /edx/app/edxapp/edxapp_env | |
cd /edx/app/edxapp/edx-platform | |
paver update_assets lms --themes=$THEME_NAME --settings=production | |
EOF | |
echo -n "Back to user: " && whoami | |
restart.lms | |
build: reset compile |
This file contains 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
say: | |
echo 'Hello DevX!' | |
editable: | |
sudo chown `whoami` -R `pwd` | |
reset: | |
sudo chown edxapp -R `pwd` | |
restart.lms: | |
sudo /edx/bin/supervisorctl restart lms | |
restart.cms: | |
sudo /edx/bin/supervisorctl restart cms | |
restart.edxapp: | |
sudo /edx/bin/supervisorctl restart lms cms edxapp_worker: | |
install.xblock: | |
sudo /edx/bin/pip.edxapp install -e `pwd` | |
restart.edxapp | |
install: reset install.xblock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment