Skip to content

Commit

Permalink
print out db connection parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Oct 30, 2014
1 parent bb382ea commit e14ae9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if not ("#{ENV["MYSQL_DATABASE"]}".blank? || "#{ENV["MYSQL_ROOT_PASSWORD"]}".blank? || "#{ENV["DATABASE_SERVICE_HOST"]}".blank?)

while %x"mysqladmin ping -h #{ENV["DATABASE_SERVICE_HOST"]} --port=#{ENV["DATABASE_SERVICE_PORT"]} -uroot -p#{ENV["MYSQL_ROOT_PASSWORD"]}".strip != "mysqld is alive"
puts "Waiting for database connection...\n"
puts "Waiting for database connection to #{ENV["DATABASE_SERVICE_HOST"]}:#{ENV["DATABASE_SERVICE_PORT"]} as ...#{ENV["MYSQL_ROOT_PASSWORD"]}\n"
sleep 1
end

Expand Down

0 comments on commit e14ae9b

Please sign in to comment.