Update entrypoint.sh
This commit is contained in:
@@ -43,6 +43,20 @@ with app.app_context():
|
||||
print(f'Error creating events table: {e}')
|
||||
"
|
||||
|
||||
# Create notifs table
|
||||
echo "Creating notifs table..."
|
||||
python3 -c "
|
||||
from migrations.add_notifs_table import upgrade
|
||||
from app import create_app
|
||||
app = create_app()
|
||||
with app.app_context():
|
||||
try:
|
||||
upgrade()
|
||||
print('Notifs table created successfully')
|
||||
except Exception as e:
|
||||
print(f'Error creating notifs table: {e}')
|
||||
"
|
||||
|
||||
# Create default site settings if they don't exist
|
||||
echo "Creating default site settings..."
|
||||
python3 -c "
|
||||
|
||||
Reference in New Issue
Block a user