Commit fe928b28 by Tyler Hallada Committed by Tyler Hallada

Add lms-restart and studio-restart make targets

Kills the running Django development server and lets the watcher process restart
it. Thanks @doctoryes for the original kill command.
parent 92f6a072
......@@ -138,6 +138,9 @@ lms-watcher-shell: ## Run a shell on the LMS watcher container
lms-attach: ## Attach to the LMS container process to use the debugger & see logs.
docker attach edx.devstack.lms
lms-restart: ## Kill the LMS Django development server. The watcher process will restart it.
docker exec -t edx.devstack.lms bash -c 'kill $$(ps aux | grep "manage.py lms" | egrep -v "while|grep" | awk "{print \$$2}")'
studio-shell: ## Run a shell on the Studio container
docker exec -it edx.devstack.studio env TERM=$(TERM) /edx/app/edxapp/devstack.sh open
......@@ -147,6 +150,9 @@ studio-watcher-shell: ## Run a shell on the studio watcher container
studio-attach: ## Attach to the Studio container process to use the debugger & see logs.
docker attach edx.devstack.studio
studio-restart: ## Kill the LMS Django development server. The watcher process will restart it.
docker exec -t edx.devstack.studio bash -c 'kill $$(ps aux | grep "manage.py cms" | egrep -v "while|grep" | awk "{print \$$2}")'
%-static: ## Rebuild static assets for the specified service container
docker exec -t edx.devstack.$* bash -c 'source /edx/app/$*/$*_env && cd /edx/app/$*/$*/ && make static'
......
......@@ -467,6 +467,9 @@ CMS:
kill -9 $(ps aux | grep 'manage.py cms' | egrep -v 'while|grep' | awk '{print $2}')
From your host machine, you can also run ``make lms-restart`` or
``make studio-restart`` which run those commands in the containers for you.
PyCharm Integration
-------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment