File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ lms-watcher-shell: ## Run a shell on the LMS watcher container
138138lms-attach : # # Attach to the LMS container process to use the debugger & see logs.
139139 docker attach edx.devstack.lms
140140
141+ lms-restart : # # Kill the LMS Django development server. The watcher process will restart it.
142+ docker exec -t edx.devstack.lms bash -c ' kill $$(ps aux | grep "manage.py lms" | egrep -v "while|grep" | awk "{print \$$2}")'
143+
141144studio-shell : # # Run a shell on the Studio container
142145 docker exec -it edx.devstack.studio env TERM=$(TERM ) /edx/app/edxapp/devstack.sh open
143146
@@ -147,6 +150,9 @@ studio-watcher-shell: ## Run a shell on the studio watcher container
147150studio-attach : # # Attach to the Studio container process to use the debugger & see logs.
148151 docker attach edx.devstack.studio
149152
153+ studio-restart : # # Kill the LMS Django development server. The watcher process will restart it.
154+ docker exec -t edx.devstack.studio bash -c ' kill $$(ps aux | grep "manage.py cms" | egrep -v "while|grep" | awk "{print \$$2}")'
155+
150156% -static : # # Rebuild static assets for the specified service container
151157 docker exec -t edx.devstack.$* bash -c ' source /edx/app/$*/$*_env && cd /edx/app/$*/$*/ && make static'
152158
Original file line number Diff line number Diff line change 467467
468468 kill -9 $( ps aux | grep ' manage.py cms' | egrep -v ' while|grep' | awk ' {print $2}' )
469469
470+ From your host machine, you can also run ``make lms-restart `` or
471+ ``make studio-restart `` which run those commands in the containers for you.
472+
470473PyCharm Integration
471474-------------------
472475
You can’t perform that action at this time.
0 commit comments