remind101 / slashdeploy

GitHub Deployments for Slack
https://slashdeploy.io
BSD 2-Clause "Simplified" License
153 stars 20 forks source link

Sidekiq Deployment Watchdog Worker #105

Closed russellballestrini closed 6 years ago

russellballestrini commented 6 years ago

High Level Overview

Heroku

Logged into UI and added redis as a "hobby dev" for now. Once provisioned, you can see the new redis url with the following command:

heroku config -a slashdeploy

Sidekiq expects you to set the following:

heroku config:set REDIS_PROVIDER=REDIS_URL -a slashdeploy

reference: https://github.com/mperham/sidekiq/wiki/Using-Redis#using-an-env-variable

Files Changed

modified:   Gemfile
modified:   Gemfile.lock
modified:   Procfile
new file:   app/messages/auto_deployment_stuck_pending_message.rb
modified:   app/models/auto_deployment.rb
new file:   app/workers/deployment_watchdog_worker.rb
new file:   bin/worker_deployment_watchdog
modified:   lib/slashdeploy/service.rb
modified:   spec/features/auto_deploy_spec.rb
ejholmes commented 6 years ago

Also, if you merge. Can you rebase and squash to a single commit?