Fix Commit history

This commit is contained in:
Michał Gdula 2023-06-11 20:44:00 +01:00
parent a29f06dfee
commit d26d8cb021
70 changed files with 674 additions and 477 deletions

20
GameExpo/run.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/sh
# Check if migrastions folder exists
if [ ! -d "/data/storage/migrations" ];
then
echo "Creating tables..."
flask --app website db init
fi
# Check if there are any changes to the database
if ! $(flask --app website db check) | grep -q "No changes in schema detected.";
then
echo "Database changes detected! Migrating..."
flask --app website db migrate
flask --app website db upgrade
fi
# Start website!!!!
echo "Starting expo website..."
gunicorn --bind expo:5000 website:app