I my Gruntfile.js I need to do something like this (pseudocode):
Gruntfile.js
if (hostname == 'host1') : port=9000 else : port=9001
How can I get the hostname ? (this will be the host where I run grunt )
hostname
grunt
var hostname = require("os").hostname();