Nuxt.js: nuxt start doesn't seem to respect HOST environmental variable

Created on 7 Oct 2017  路  3Comments  路  Source: nuxt/nuxt.js

Basically, I do HOST=0.0.0.0 npm run start, expecting to get the app running at 0.0.0.0:3000. Nevertheless, weirdly enough, what I get is OPEN http://localhost:3000. Nuxt version I use is [email protected]. What can I do to force Nuxt to listen to four zeroes?

This question is available on Nuxt.js community (#c1609)
help-wanted

Most helpful comment

All 3 comments

@NicoPennec great, thank you for this information.

Nevertheless, I need to run my nuxt-based app in a docker container as a part of docker-compose setup. I do not know the IP address nor even the network that will be assigned to the running container. So I was thinking about using 0.0.0.0.

Hmmm, actually I seem to have found a solution just while typing the previous paragraph. I'll use docker-compose's hostname instead, and it should do the trick. Thank you for being my silently listening rubber duck =)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  路  3Comments

mikekidder picture mikekidder  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

msudgh picture msudgh  路  3Comments

surmon-china picture surmon-china  路  3Comments