##// END OF EJS Templates
new structure and views.py (pedestal) update
new structure and views.py (pedestal) update

File last commit:

r366:bdf15dfd5ebe
r366:bdf15dfd5ebe
Show More
start_realtime.sh
24 lines | 679 B | application/x-sh | BashLexer
#!/bin/bash
if [ -f /sirm/radarsys.sqlite ];
then
echo "The commands 'makemigrations', 'migrate' and 'collectstatic' 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
# Collect static files
echo "Collect static files"
python manage.py collectstatic --noinput
fi
# Create superuser
python manage.py createsuperuser_if_none_exists --user=${SIRM_USER} --email=${SIRM_EMAIL} --password=${SIRM_PASSWORD}
# Runserver
echo "Collect static files"
python manage.py runserver 0.0.0.0:8080