Add Pg statement timeout variable to allow long migration

This commit is contained in:
simon lehericey 2019-10-24 14:37:52 +02:00
parent 96b5817cbf
commit 54d6d21c27

View file

@ -94,6 +94,8 @@ desc "Deploys the current version to the server."
task :deploy do task :deploy do
command 'export PATH=$PATH:/home/ds/.rbenv/bin:/home/ds/.rbenv/shims' command 'export PATH=$PATH:/home/ds/.rbenv/bin:/home/ds/.rbenv/shims'
command 'source /home/ds/.profile' command 'source /home/ds/.profile'
# increase db timeout to 5 minutes to allow long migration
command 'export PG_STATEMENT_TIMEOUT=300000'
deploy do deploy do
# Put things that will set up an empty directory into a fully set-up # Put things that will set up an empty directory into a fully set-up