Reputation: 1396
I have recently made a foray into the Jekyll world. I'm currently exploring this on a local Apache2 server running Bootstrap 3 with a simple responsive layout.
Installation Summary I just installed ruby, ruby-dev, gcc, make and all appropriate gems. The Jekyll installation guide was great to get it installed and such. I went ahead and create a new blog, 'sudo jekyll new blog' in /var/www/html. Now as, /var/www/html/blog.
Installation Directory about.md _config.yaml Gemfile Gemfile.block .gitignore index.md _posts .sass-cache _site/
Post Installation Configuration I've edited the _config.yaml file to establish base directories and such, everything looks appropriate.
I fire up the Jekyll instance via: sudo exec jykll serve, which is currently producing.
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1)
rouge (~> 1.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /var/www/html/blog/_config.yml
Configuration file: /var/www/html/blog/_config.yml
Source: /var/www/html/blog
Destination: /var/www/html/blog/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.458 seconds.
Auto-regeneration: enabled for '/var/www/html/blog'
Configuration file: /var/www/html/blog/_config.yml
Server address: http://127.0.0.1:4000/blog/
Server running... press ctrl-c to stop.
Issue The issue that I am having is that when I navigate to localhost/blog, instead of seeing a 'homepage' or index, all I'm seeing is the directory structure as noted above. It's as if the index file isn't rendering or such. However, if I click into _site/, I get something that looks a bit like a classic landing page for the sample post.
Question What am I missing? Did I mis-configure something? Is this expected behavior?
Thanks!
Upvotes: 1
Views: 871
Reputation: 23942
The problem is that you are looking at the generated files without a web server.
You can run a webserver at the folder that contains _config.yml, just to see that everything goes fine, then you need a "real" web server to serve your pages: $ jekyll serve
After running jekyll serve
you will be able to access your website at: http://localhost:4000
Upvotes: 0