From 6b1f3d5999300ac0e192063472ed255eecd2bec3 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