This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
heroku $@ --app my-production-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Determine if an environment is stale compared to an upstream environment, based the last tagged deploy" | |
task :stale, [:upstream, :downstream, :days] do |t, args| | |
upstream = args[:upstream] | |
downstream = args[:downstream] | |
days = args[:days] | |
find_date = /^[a-z-]+\/(\d{4})(\d{2})(\d{2})/i | |
`git fetch --tags` | |
last_upstream_tag = `git describe --tags --match #{upstream}/*` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM information_schema.processlist WHERE Command != 'Sleep' AND Info NOT LIKE 'SELECT * FROM information_schema%'\g |