Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
img
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cure-mastodon-bots

Precure mastodon bot

CircleCI Coverage Status

Setup

bundle install
cp .env.example .env
vi .env

Run

bundle exec foreman s

open http://localhost:3000/

Heroku

Setup

heroku config:set MASTODON_URL=https://precure.ml
heroku config:set RACK_ENV=production
heroku config:set ACCESS_TOKEN_SAMPLE=xxxxxxxxx
heroku config:set ACCESS_TOKEN_BIRTHDAY=xxxxxxxxx
heroku config:set ACCESS_TOKEN_ON_AIR=xxxxxxxxx
heroku config:add ROLLBAR_ACCESS_TOKEN=xxxxxxxxx

Scheduler

Register rake tasks to Heroku Scheduler

Heroku Scheduler

tasks

  • bundle exec rake bot:birthday
  • bundle exec rake bot:on_air
  • bundle exec rake bot:today_on_air

Deploy to Heroku

Deploy