Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scotch Box And Jekyll #18

Closed
juicymark opened this issue Dec 13, 2014 · 3 comments
Closed

Scotch Box And Jekyll #18

juicymark opened this issue Dec 13, 2014 · 3 comments

Comments

@juicymark
Copy link

Hi

I have downloaded scotch box and got it setup nicely with additional apache virtual hosts and wish to use this box as my main development box.

However i also wish to develop jekyll sites on this box,, so i installed the jekyll gem and can create a new jekyll site.

However for the life of me i cannot view the generated site on my local browser

i have added a line to the Vagrantfile to forward the ports and have tried

config.vm.network :forwarded_port, host: 4000, guest: 4000
and
config.vm.network :forwarded_port, host: 8080, guest: 4000

then going to my local browser, trying the following

http://127.0.0.1:4000
http://127.0.0.1:8080
http://0.0.0.0:4000
http://0.0.0.0:8080

But i cannot view the generated site.

Regards

Mark

@whatnickcodes
Copy link
Member

Did you try the IP address from the vagrant file?

@juicymark
Copy link
Author

Hi

Yes i also tried the ip 192.168.33.10:4000 but this didnt work either

@justinluk
Copy link

For anyone else running into this issue, I found that running jekyll like this:
jekyll serve --host 0.0.0.0

Allowed the portforwarding to work. Then you can access the jekyll server inside the VM from outside in browser by going http://hostname:4000 (change the port to be whatever you have it set to in your Vagrantfile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants