修复权限按钮类型添加问题,修复日志页面表格未对齐问题

This commit is contained in:
wojiaoyishang
2025-01-26 16:04:05 +08:00
parent 40d0ea956d
commit 145ccbfb3e
8 changed files with 54 additions and 69 deletions
+3 -23
View File
@@ -1,25 +1,5 @@
#!/bin/bash
# Wait for MySQL container to be ready
echo "Waiting for MySQL container to start..."
until mysql -h mysql -uroot -p123456 -e ";" 2>/dev/null; do
echo "MySQL container not ready, sleeping for 5 seconds..."
sleep 5
done
echo "MySQL container started successfully!"
# to start create the dababase
echo " start to create the databse... "
mysql -uroot -p123456 -hmysql -e 'CREATE DATABASE PearAdminFlask DEFAULT CHARSET UTF8;'
# Initialize Flask database
echo "Initializing Flask database..."
flask db init
flask db migrate
flask db upgrade
flask admin init
# Start gunicorn application
echo "Starting gunicorn application..."
exec gunicorn -c gunicorn.conf.py "applications:create_app()"
# 运行程序
echo "Starting application..."
python3 app.py