Skip to content

Commit

Permalink
Add default value for DJANGO_HTTP_PORT if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
acrewdson authored and chosak committed May 17, 2018
1 parent 4ac678d commit 5e46fc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# Set script to exit on any errors.
set -e

DJANGO_HTTP_PORT=${DJANGO_HTTP_PORT:-8000}

if [ "$1" == "ssl" ]; then
echo -e '\033[0;32mStarting SSL Django server on port' $DJANGO_HTTP_PORT '...'
tput sgr0
Expand Down

0 comments on commit 5e46fc2

Please sign in to comment.