-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfirststart.local.sh
executable file
·19 lines (17 loc) · 1.08 KB
/
firststart.local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#First run
echo -e " \e[32m===============================================================================================\e[0m"
echo -e " \e[32mP4S - Migrate Database\e[0m"
python app/manage.py migrate --noinput
echo -e " \e[32m===============================================================================================\e[0m"
echo -e " \e[32mP4S - Create Superuser, Login: admin, Password: admin\e[0m"
python app/manage.py loaddata create_superuser
echo -e " \e[32m===============================================================================================\e[0m"
echo -e " \e[32mP4S - Importing Shows from June 2020\e[0m"
python app/manage.py loaddata showdata
echo -e " \e[32m===============================================================================================\e[0m"
echo -e " \e[32mP4S - Setup Webserver\e[0m"
python app/manage.py collectstatic --no-input --clear
echo -e " \e[32m===============================================================================================\e[0m"
echo -e " \e[32mP4S - Running locally\e[0m"
python app/manage.py runserver 7000 --noreload