From 54d6d21c2738b92199631c99d4cda14372495ca9 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 24 Oct 2019 14:37:52 +0200 Subject: [PATCH] Add Pg statement timeout variable to allow long migration --- config/deploy.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/deploy.rb b/config/deploy.rb index b8cfdd565..5e7b2062e 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -94,6 +94,8 @@ desc "Deploys the current version to the server." task :deploy do command 'export PATH=$PATH:/home/ds/.rbenv/bin:/home/ds/.rbenv/shims' command 'source /home/ds/.profile' + # increase db timeout to 5 minutes to allow long migration + command 'export PG_STATEMENT_TIMEOUT=300000' deploy do # Put things that will set up an empty directory into a fully set-up