Skip to content

Commit

Permalink
Merge pull request #9 from experius/lewisvoncken-patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] Commands to run migration and create super user weren't exec…
  • Loading branch information
lewisvoncken authored Oct 11, 2020
2 parents 390120c + a1707e1 commit 242d1de
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 242d1de

Please sign in to comment.