I my Gruntfile.js
I need to do something like this (pseudocode):
if (hostname == 'host1') : port=9000
else : port=9001
How can I get hostname
? (this would be the host where I am running grunt
)
var hostname = require("os").hostname();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With