Created
September 17, 2015 03:23
-
-
Save Resseguie/ef62417552f4e05be61b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env node | |
var Heroku = require('heroku-client'); | |
var heroku = new Heroku({ token: process.env.HEROKU_API_TOKEN }); | |
console.log('Restarting Dyno'); | |
heroku.apps(process.env.APP_NAME).dynos().restartAll(function(err, res) { | |
console.log('done', err, res); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment