Name: supbot
Owner: gophergala2016
Description: Simple slack bot powered deployment tool with Sup
Created: 2016-01-23 01:27:30.0
Updated: 2018-05-02 08:50:44.0
Pushed: 2016-01-24 23:34:16.0
Size: 5277
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Sup… Slack?
Sup let's you execute commands on remote machines based on predefined and simple rules.
Supbot is a Slack bot that listens to Sup commands.
You can easily monitor, deploy, bring-up, bring-down, tail logs… on any environment, across any network directly from your Slack channel.
You can do anything Sup can do, directly from Slack.
How about using a remote network and not only the local one? Yes:
/projects
checkout https://github.com/gophergala2016/supbot.git
Your deployment of the Slack bot will require a Slack bot token. This token will need to be set to the SLACK_TOKEN
environment variable.
To obtain this token, you will need to sign into Slack and request a custom bot integration for your team's subdomain. At the time of writing (Jan 24 2016), you can start this process at the following URL:
https://[your-team-subdomain].slack.com/apps/build/custom-integration
You can use sup
to deploy to a server as defined in the Supfile
.
is is a portion of the supfile
orks:
.
od:
hosts:
- deploy@162.243.9.244
deploy
If you want to try it locally, use make docker
to build the docker image,
then use make docker-run
to run this server locally.
K_TOKEN=yyy make docker-run
roku create
t push heroku master
roku open
or
Make sure to set your SLACK_TOKEN
env variable
roku config:set SLACK_TOKEN=xxx-xxyz-xxzy
ing config vars and restarting xxxx... done
K_TOKEN: xxx-xxyz-xxzy
roku config
xxxx Config Vars
K_TOKEN: xxx-xxyz-xxzy
Some pointers:
heroku ps:scale worker=1
to scale dyno manually