From aaff141a1651f3bc2b0ba9258eaff29f29abd3ae Mon Sep 17 00:00:00 2001 From: Matias Vallejos Date: Mon, 29 Jan 2024 18:43:58 -0300 Subject: [PATCH] Move build.sh --- app/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/build.sh diff --git a/app/build.sh b/app/build.sh new file mode 100644 index 0000000..bf592d6 --- /dev/null +++ b/app/build.sh @@ -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('game@planetchallenge.com', 'game1986')" +python manage.py collectstatic --no-input +python manage.py migrate + +python manage.py drop_test_database --no-input +python manage.py test \ No newline at end of file