jeudi 26 février 2015

grunt-contrib-connect - Fatal error: getaddrinfo ENOTFOUND my.website - How to set up custom URL?


I want to use grunt-contrib-connect to create a server under a specific URL, let's say http://my.website/. According to the documentation, all I need to do is just to change the hostname option, but I keep getting an error saying: Fatal error: getaddrinfo ENOTFOUND my.website.


Here's my Gruntfile.js:



connect: {

dev: {

options: {

keepalive: true,
port: 80,
hostname: 'my.website',
base: 'public'

}

}

},


Thanks.





Aucun commentaire:

Enregistrer un commentaire