Add a dyno to an existing app.
var Heroku = require('machinepack-heroku');
// Add a dyno to an existing app.
Heroku.addDyno({
apiToken: 'abc12421-1234-abdc-5343-ae4adf123fea4',
app: 'app-123',
command: 'bash',
environment: {},
size: '1X',
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// OK.
success: function () {
},
});
Your Heroku API token
'abc12421-1234-abdc-5343-ae4adf123fea4'
Unique ID or name of your Heroku app.
'app-123'
Command used to start this process
'bash'
Environment variable overrides to use in setting up the app.
Number of dynos to spin up.
'1X'
An unexpected error occurred.
OK.