Skip to content

Commit

Permalink
dynamic service port (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: --global <--global>
  • Loading branch information
SKairinos authored Nov 1, 2024
1 parent dbe8d42 commit 1548ba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/backend/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ set -e

wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/backend/setup | bash

pipenv run python manage.py runserver localhost:8000
if [ -z $SERVICE_PORT ]; then SERVICE_PORT='8000'; fi

(export SERVICE_PORT && pipenv run python manage.py runserver localhost:$SERVICE_PORT)

0 comments on commit 1548ba8

Please sign in to comment.