Skip to content

Commit

Permalink
Move build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvallejosdev committed Jan 29, 2024
1 parent 6a03097 commit aaff141
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# exit on error
set -o errexit

pip install -r requirements.txt

# How to automate createsuperuser on django
# https://stackoverflow.com/questions/6244382/how-to-automate-createsuperuser-on-django/59467533#59467533
# python manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.create_user('[email protected]', 'game1986')"
python manage.py collectstatic --no-input
python manage.py migrate

python manage.py drop_test_database --no-input
python manage.py test

0 comments on commit aaff141

Please sign in to comment.