-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
30 lines (21 loc) · 753 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "Upgrade pip..."
python3 -m pip install --upgrade pip
echo "Installing dependencies..."
python3 -m pip install -r requirements.txt
# echo "Migrating database..."
# python3 manage.py makemigrations --noinput
# python3 manage.py migrate --noinput
# echo "Creating superuser..."
# DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
# DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
# DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
# python3 manage.py createsuperuser \
# --email $DJANGO_SUPERUSER_EMAIL \
# --noinput || true
echo "Running npm install..."
npm run bootstrap
echo "Running npm Production..."
npm run collect
echo "Collecting static files..."
python3 src/manage.py collectstatic --noinput --clear