Cannot reach Jekyll server on Vagrant from outside

前端 未结 1 588
醉梦人生
醉梦人生 2021-02-01 19:41

I\'ve built a Vagrant VM with hashicorp/precise32 box and installed Jekyll on it. I\'ve set port 4000 forwarding on Vagrantfile:

config.vm.network :forwarded_port,

相关标签:
1条回答
  • 2021-02-01 20:27

    The error was on Server address: http://127.0.0.1:4000/. It seems that localhost is the default host for Jekyll, so I need to run jekyll serve --host 0.0.0.0 for the server to be available from outside.

    I find the answer here: Vagrant port forwarding not working. Cups not accesible from host

    0 讨论(0)
提交回复
热议问题