Running it on Heroku
- Login to heroku (FreshBooks employees ask IT for heroku access via OKTA)
- Follow this link
- Add a slack incoming webhook
- Copy the
Webhook URL
into the Heroku configSLACK_HOOK_URL
- Copy the Bamboo icalendar feed url into the Heroku config
FEED_URL
- Copy the names of the people on your team exactly as they appear in Bamboo into the Heroku config
NAMES
field separated by semicolons - Click Deploy for Free
- Once it's done deploying click
Manage App
- Click the Edit button beside Add-ons
- Search for add and save
Heroku Scheduler
- Go to the (Heroku Scheduler)[https://scheduler.heroku.com/dashboard]
- Configure the Heroku Scheduler to run
ruby bin/awaybot.rb major
daily at13:00 UTC
Optionally Connect the Application to Github
- Requires that you have access to the Github repository (FreshBooks employees as in #dev)
- From the application Deploy->GitHub page click
Connect to GitHub
- Grant the heroku app access to freshbooks/awaybot
- Click on
Enable Automatic Deploys
Running it locally
export FEED_URL='https://freshbooks.bamboohr.com/feeds/feed.php?id=SNIP'
export SLACK_HOOK_URL='https://hooks.slack.com/services/T024K32LX/B060UFKPE/SNIP'
export NAMES='Sen Nordstrom;Jason Shaw;Jonathan Yee'
ruby bin/awaybot.rb major