##// END OF EJS Templates
Add 'reset pedestal' option
Add 'reset pedestal' option

File last commit:

r381:11af3879dc1c
r444:d8e453ba0459
Show More
start_realtime.sh
31 lines | 824 B | application/x-sh | BashLexer
#!/bin/bash
python ../setup/prerun.py || { echo '[DJANGO prerun] FAILED. Exiting...' ; exit 1; }
if [ -f .gitkeep ];
then
echo "The commands 'makemigrations', 'migrate' and '.gitkeep' were not exectued"
else
# Apply database makemigrations
echo "Apply makemigrations"
python manage.py makemigrations
# Apply database migrations
echo "Apply database migrations"
python manage.py migrate
python manage.py loaddata main
python manage.py loaddata tx
# Collect static files
#echo "Collect static files"
#python manage.py collectstatic --noinput
# Create ".gitkeep" file in "setup" folder
echo "Create .gitkeep"
touch .gitkeep
fi
echo "Create Superuser"
python manage.py createsuperuser_if_none_exists
echo "Run server"
python manage.py runserver 0.0.0.0:8080