From 06633bd7a1463d4f3c3f49198b0f9b03a5360f58 Mon Sep 17 00:00:00 2001 From: simplefl Date: Tue, 26 May 2015 19:06:40 +0200 Subject: [PATCH] Add wait_timeout and reconnect to database.ym. --- config/database.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/database.yml b/config/database.yml index c18ed69..0573d66 100644 --- a/config/database.yml +++ b/config/database.yml @@ -6,6 +6,9 @@ base: &db username: <%= ENV['MYSQL_USERNAME'] %> password: <%= ENV['MYSQL_PASSWORD'] %> pool: <%= Integer(ENV['MYSQL_CONNECTION_POOL'] || 8) %> + wait_timeout: 30 + reconnect: true + development: <<: *db