Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujihisa/ruby-slackbot
https://github.com/ujihisa/ruby-slackbot
gplv3 hacktoberfest ruby slack-bot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ujihisa/ruby-slackbot
- Owner: ujihisa
- Created: 2020-06-11T20:34:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T04:28:45.000Z (3 months ago)
- Last Synced: 2024-08-14T05:38:07.578Z (3 months ago)
- Topics: gplv3, hacktoberfest, ruby, slack-bot
- Language: Ruby
- Homepage:
- Size: 523 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Development
Use docker-compose run "ruby-slackbot" for develop.
```bash
docker-compose up -d yaichi && docker-compose up --build ruby-slackbot
```Open http://localhost in your browser
## Testing
```
docker-compose build -q ruby-slackbot && docker-compose run --rm ruby-slackbot bin/rails test test:integration
```## Manual deploy
Replace the tag with the current sha1.
Use this only when you need to test the deployment itself.```
docker build -t "gcr.io/devs-sandbox/ruby-slackbot:latest" .
docker push "gcr.io/devs-sandbox/ruby-slackbot:latest"
gcloud run deploy ruby-slackbot --image "gcr.io/devs-sandbox/ruby-slackbot:latest" --region us-central1 --platform managed --allow-unauthenticated
```## See logs
gcloud command line option seems to be crazy
```sh
gcloud logging read "resource.type=cloud_run_revision AND resource.labels.service_name=$(basename `pwd`)" --project devs-sandbox --limit 10 --format 'value(receiveTimestamp, textPayload)'
```## Licence
Copyright Tatsuhiro Ujihisa
GPLv3 or any later versions