Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
dwradcliffe committed Dec 27, 2014
1 parent caf2e13 commit c6446fb
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -275,7 +275,7 @@ GRAPH
dnsimple (>= 0.0.0)
hostname (>= 0.0.0)
rubygems-hosts (0.0.10)
rubygems-hubot (0.0.32)
rubygems-hubot (0.0.33)
chef-vault (>= 0.0.0)
hubot (~> 1.0.2)
nginx (>= 0.0.0)
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@ module.exports = (robot) ->
exec "bundle exec cap #{env} deploy -s user=hubot", "#{process.env["HUBOT_DEPLOY_LOG_DIR"]}/#{deployKey}.log", callback
], (err, results) ->
if err
console.log err
msg.send ":x: Deploy to #{env} failed! #{url}"
else
msg.send ":+1: Deployed to #{env}! #{url}"
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hubot/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-hubot'

version '0.0.32'
version '0.0.33'

depends 'chef-vault'
depends 'hubot', '~> 1.0.2'
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hubot/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
'HUBOT_SLACK_BOTNAME' => 'hubot',
'EXPRESS_USER' => hubot_secrets['user'],
'EXPRESS_PASSWORD' => hubot_secrets['password'],
'HUBOT_DEPLOY_DIR' => '/var/lib/hubot-deploy/staging',
'HUBOT_DEPLOY_DIR' => "#{node['rubygems-hubot']['deploy_dir']}/staging",
'HUBOT_DEPLOY_LOG_DIR' => '/var/log/hubot_deploys',
}

0 comments on commit c6446fb

Please sign in to comment.