Skip to content
Snippets Groups Projects
Commit 4e380a02 authored by Arie Peterson's avatar Arie Peterson
Browse files

Add dev command for local backend shell

parent 229d5531
No related branches found
No related tags found
1 merge request!177Resolve "Extend SCIM to support Zulip"
Pipeline #45743 passed with stages
in 3 minutes and 40 seconds
......@@ -114,6 +114,15 @@ runBackend() {
esac
}
runBackendShell() {
echo "Running shell in the local dashboard backend environment."
pushd backend > /dev/null
source venv/bin/activate
env $(xargs <backend.env) bash
deactivate
popd > /dev/null
}
runFrontend() {
echo "Running dashboard frontend locally and connecting to cluster."
case $mode in
......@@ -172,6 +181,12 @@ then
exit 0
fi
if [ "$1" == "backend-shell" ]
then
runBackendShell
exit 0
fi
if [ $# -eq 1 ]
then
mode="native"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment