##// END OF EJS Templates
Add users and groups
Add users and groups

File last commit:

r445:046e9870ce02
r445:046e9870ce02
Show More
start_realtime.sh
34 lines | 854 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 Groups"
python manage.py create_groups
echo "Create User"
python manage.py create_users
echo "Run server"
python manage.py runserver 0.0.0.0:8080