Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
feat(framework): Allow increased timeout during deploy (#76)
Browse files Browse the repository at this point in the history
feat: deploy timeout attribute
  • Loading branch information
kpheasey authored and ajgon committed Apr 7, 2017
1 parent 854b087 commit e216972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Expand Up @@ -9,6 +9,8 @@
nginx::http_stub_status_module
)

default['deploy']['timeout'] = 600

# global
default['defaults']['global']['environment'] = 'production'
default['defaults']['global']['symlinks'] = {
Expand Down
2 changes: 2 additions & 0 deletions recipes/deploy.rb
Expand Up @@ -96,6 +96,8 @@

run_callback_from_file(File.join(release_path, 'deploy', 'after_restart.rb'))
end

timeout node['deploy']['timeout']
end

fire_hook(:after_deploy, items: databases + [scm, framework, appserver, worker, webserver])
Expand Down

0 comments on commit e216972

Please sign in to comment.