Skip to content

Commit

Permalink
Merge pull request #463 from range-of-motion/462-fix-issue-with-datab…
Browse files Browse the repository at this point in the history
…ase-host-and-port-used-by-wait-for-it

Fix issue with database host and port used by wait-for-it
  • Loading branch information
range-of-motion authored Dec 9, 2023
2 parents 8ee2da3 + cc260e3 commit 96885de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ fi

php artisan config:cache

databaseHost=$(awk -F= '$1 == "DB_HOST" {print $2}' .env)
databasePort=$(awk -F= '$1 == "DB_PORT" {print $2}' .env)
databaseHost=$(php artisan tinker --execute="echo config('database.connections.mysql.host')")
databasePort=$(php artisan tinker --execute="echo config('database.connections.mysql.port')")

./docker/wait-for-it.sh $databaseHost:$databasePort -t 90 -- php artisan migrate --force

Expand Down

0 comments on commit 96885de

Please sign in to comment.