mirror of
https://github.com/Project-Redacted/Highscores-Server.git
synced 2025-06-05 01:33:12 +00:00
Add account page and login system
This commit is contained in:
parent
ebdef07840
commit
ffba2b3b7b
11 changed files with 154 additions and 63 deletions
22
run.sh
Executable file
22
run.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check if migrations folder exists
|
||||
if [ ! -d "./migrations" ];
|
||||
then
|
||||
echo "Creating tables..."
|
||||
flask --app server db init
|
||||
fi
|
||||
|
||||
# Check if there are any changes to the database
|
||||
if flask --app server db check | grep "No changes detected";
|
||||
then
|
||||
echo "No database changes detected"
|
||||
else
|
||||
echo "Database changes detected! Migrating..."
|
||||
flask --app server db migrate
|
||||
flask --app server db upgrade
|
||||
fi
|
||||
|
||||
# Start server!!!!
|
||||
echo "Starting server..."
|
||||
# gunicorn --bind highscore:8080 server:app
|
Loading…
Add table
Add a link
Reference in a new issue