Add your Campfire credentials and subdomain
export CAMPFIRE_SUBDOMAIN=your-subdomain
export CAMPFIRE_TOKEN=your-api-token
Add this line to your application's Gemfile:
gem 'campfire_deploy_notifications', :gitub => "foraker/campfire_deploy_notifications"
Run bundle install
, and then require
the capistrano extension in your deploy.rb file:
require "campfire_deploy_notifications/capistrano"
By default, we notify the "Technology - internal" room using the subdomain and token supplied in the environment.
CampfireDeployNotifications.config.add_room({
:name => "Some Room",
:subdomain => "an-alternative-subdomain", # Optional
:token => "an-alternative-token" # Optional
})
CampfireDeployNotifications.config.rooms = [CampfireDeployNotifications::Room.new(:name => "Some Room")]
# Or, pointlessly
CampfireDeployNotifications.config.rooms = []
CampfireDeployNotifications has the following configuration options:
rooms
- Rooms to notify of the deploy. Defaults toCampfireDeployNotifications::Room.new(name: "Technology - internal")
.project
- defaults to the repository nameenv
- fetches:rails_env
variable from Capistrano, defaults to 'production'branch
- fetches:branch
variable from Capistrano, defaults to 'master'user
- the git user nametoken
- defaults to CAMPFIRE_TOKENsubdomain
- default to CAMPFIRE_SUBDOMAIN
Foraker Labs builds exciting web and mobile apps in Boulder, CO. Our work powers a wide variety of businesses with many different needs. We love open source software, and we're proud to contribute where we can. Interested to learn more? Contact us today.
This project is maintained by Foraker Labs. The names and logos of Foraker Labs are fully owned and copyright Foraker Design, LLC.