Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.86 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.86 KB

RTTD

Status

This is a toy project built for fun so please don't expect high quality engineering or much attention to issues/requests.

Screenshot

RTTD

Screenshot made of fake data from https://randomuser.me/

Originally designed by @skippednote at https://github.com/skippednote/slack-timezone

Run locally

Makefile

Makefile is mostly broken right now but the build work. The workflow is as follows:

$ make install
$ make build
$ ./build/timezones --slack-api-token=<token>

Deploy to Heroku in 5 minutes

Create new Heroku app

$ heroku create --buildpack https://github.com/tonyta/heroku-buildpack-custom-binaries.git

Creating app... done, ⬢ <app-name>
Setting buildpack to https://github.com/tonyta/heroku-buildpack-custom-binaries.git... done
https://<app-name>.herokuapp.com/ | https://git.heroku.com/<app-name>.git

Provide access to Slack

Now generate a Slack API Token and add it as an environment variable aka config variable to your heroku app from the heroku dashboard. Variable name should be SLACK_API_TOKEN. An alternative to this is to append --slack-api-token="<api-token> to the web command in Procfile below.

Deploy Heroku app

$ git clone https://git.heroku.com/<app-name>.git
$ cd <app-name>
$ echo "rttd_linux: https://github.com/owais/RTTD/releases/download/v0.2.0/RTTD_0.2.0.tar.gz" > .custom_binaries
$ echo "web: rttd_linux" > Procfile
$ git add -A .
$ git commit -m"Deploying to heroku"
$ git push

That's it. Your instance of RTTD should be up and running at https://<app-name>.herokuapp.com/

To upgrade to a newer version, change 0.2.0 to the version number in .customer_binaries file and push to heroku.