Write and execute shell scripts with ejs.
npm install shell-ejs
var shellEjs = require('shell-ejs');
var variables = {
host: 'http://my.domain.com',
port: 3000
};
shellEjs.executeFile('./deploy.sh', variables, function (err, stdout, stderr) {
// Do something
})
MIT