Skip to content

Commit c9ec438

Browse files
authored
Use Laravel DB Host for wait for it.
1 parent d54f645 commit c9ec438

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

home/app/run-dev.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ composer install --prefer-dist --no-progress --no-interaction
1717
yarn
1818

1919
# migrate and setup database
20-
wait-for-it.sh mysql:3306
20+
if [ -z "$DB_HOST" ]; then
21+
wait-for-it.sh $DB_HOST
22+
fi
2123
php artisan migrate --force
2224
php artisan setup
2325

0 commit comments

Comments
 (0)