Skip to content

Commit d54f645

Browse files
authored
Use laravel db host for wait for it.
1 parent 8588329 commit d54f645

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

home/app/run-prod.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ chown www-data:www-data -R /opt/app/storage
1010
chown www-data:www-data -R /opt/app/bootstrap/cache
1111

1212
# migrate and setup database
13-
wait-for-it.sh mysql:3306
13+
if [ -z "$DB_HOST" ]; then
14+
wait-for-it.sh $DB_HOST
15+
fi
1416
php artisan migrate --force
1517
php artisan setup
1618

0 commit comments

Comments
 (0)