Skip to content

Commit

Permalink
[BUGFIX] Commands to run migration and create super user weren't exec…
Browse files Browse the repository at this point in the history
…uted
  • Loading branch information
lewisvoncken authored Oct 8, 2020
1 parent 390120c commit a1707e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ if [ -z ${var+x} ]; then
export $(egrep -v '^#' .env | xargs)
fi

./manage.py migrate
python manage.py migrate

echo "Admin: $ADMIN_NAME"
export DJANGO_SUPERUSER_PASSWORD="$ADMIN_PASS"
./manage.py createsuperuser --username "$ADMIN_NAME" --email "$ADMIN_EMAIL" --no-input
python manage.py createsuperuser --username "$ADMIN_NAME" --email "$ADMIN_EMAIL" --no-input

python manage.py runserver 0.0.0.0:8080
python manage.py runserver 0.0.0.0:8080

0 comments on commit a1707e1

Please sign in to comment.