ubuntu 16.04 - When I create gatsby hot-reloading development environment on my server my IP address it will gives error -


when create gatsby hot-reloading development environment on server ip run following commands

sudo gatsby develop --host http://34.211.109.30 --port 9000 

then give following error.

events.js:160       throw er; // unhandled 'error' event       ^  error: getaddrinfo enotfound http://34.211.109.30     @ errnoexception (dns.js:28:10)     @ getaddrinforeqwrap.onlookup [as oncomplete] (dns.js:76:26) 

but ip publicly accessible.but when run commands

gatsby build 

then listen on http://localhost:8000

please me

drop protocol. --host expecting ip address.

this should supported though — created issue support supplying protocol.

https://github.com/gatsbyjs/gatsby/issues/1652


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -