Skip to content

Instantly share code, notes, and snippets.

@Resseguie
Created September 17, 2015 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Resseguie/ef62417552f4e05be61b to your computer and use it in GitHub Desktop.
Save Resseguie/ef62417552f4e05be61b to your computer and use it in GitHub Desktop.
#!/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