mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Use correct var for detecting MySQL
This commit is contained in:
parent
e70a569511
commit
24c4634a7b
5 changed files with 5 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ export DATABASE_NAME=tracks_test
|
|||
|
||||
$docker_compose build
|
||||
$docker_compose up -d
|
||||
script/poll-for-db
|
||||
script/poll-for-db $2
|
||||
|
||||
# Leaving this in since it will be needed for Rails 5
|
||||
$docker_compose run web bin/rails db:environment:set RAILS_ENV=test || true
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
echo "==> Polling DB…"
|
||||
|
||||
if [ "$DATABASE_TYPE" == "mysql" ]; then
|
||||
if [ "$1" == "mysql" ]; then
|
||||
appdir=$(cd $(dirname "$0")/.. && pwd)
|
||||
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue