Merge pull request #4439 from betagouv/allow_long_migration_in_deploy

Modifie le déploiement pour autoriser des longues migrations (5min)
This commit is contained in:
Paul Chavard 2019-10-24 16:05:26 +02:00 committed by GitHub
commit a6d6d72af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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