10000 GitHub - ujihisa/ruby-slackbot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ujihisa/ruby-slackbot

Repository files navigation

README

Development

Use docker-compose run "ruby-slackbot" for develop.

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

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0