[修改]修改了panel的dockerfile,变更为容器内运行
This commit is contained in:
14
management-panel/entrypoint.sh
Normal file
14
management-panel/entrypoint.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p storage/app/{public,tenants}
|
||||
mkdir -p storage/logs
|
||||
|
||||
if [ ! -f /app/storage/app/database.sqlite ]; then
|
||||
cat .env
|
||||
touch /app/storage/app/database.sqlite
|
||||
php artisan migrate --seed --force
|
||||
fi
|
||||
|
||||
php artisan migrate
|
||||
|
||||
$@
|
||||
Reference in New Issue
Block a user