mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
install plugin packages on start (#2298)
This commit is contained in:
committed by
GitHub
parent
91c5ddb2bd
commit
58dcbeac0b
@@ -31,7 +31,7 @@ else
|
||||
echo "Generated app key written to .env file"
|
||||
else
|
||||
echo "APP_KEY exists in environment, using that."
|
||||
echo "APP_KEY=$APP_KEY" > /pelican-data/.env
|
||||
echo "APP_KEY=${APP_KEY}" > /pelican-data/.env
|
||||
fi
|
||||
|
||||
# enable installer
|
||||
@@ -47,7 +47,7 @@ if [ "${APP_INSTALLED}" = "true" ]; then
|
||||
if [ "${DB_CONNECTION}" != "sqlite" ]; then
|
||||
# check for DB up before starting the panel
|
||||
echo "Checking database status."
|
||||
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||
until nc -z -v -w30 "${DB_HOST}" "${DB_PORT}"
|
||||
do
|
||||
echo "Waiting for database connection..."
|
||||
# wait for 1 seconds before check again
|
||||
@@ -59,6 +59,8 @@ if [ "${APP_INSTALLED}" = "true" ]; then
|
||||
|
||||
# run migration
|
||||
php artisan migrate --force
|
||||
|
||||
php artisan p:plugin:composer
|
||||
fi
|
||||
|
||||
echo "Optimizing Filament"
|
||||
|
||||
Reference in New Issue
Block a user