mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-29 22:23:10 +00:00
Add docker files for expo page
This commit is contained in:
parent
578b0e728b
commit
77c0711a24
11 changed files with 76 additions and 522 deletions
20
DV8-Expo/run.sh
Normal file
20
DV8-Expo/run.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue