matanox
matanox

Reputation: 13746

bootstrapped jekyll project fails to load its auto-generated css

I've created a new jekyll project precisely following the simple command sequence at https://jekyllrb.com/. However it seems like the server is not looking for the right main.css:

GET http://example.com/css/main.css 404 (Not Found)

This error in the browser console seems to imply an irrelevant domain for a local project, so I wonder whether those instructions just mentioned are not what one should do for bootstrapping and running/testing a jekyll project on your local server. In that case, what is the right procedure for working locally? and is there an automated command for setting a different host name for deploying to a real server?

I am using a fresh install of jekyll 3.2.1.

Thanks!

Upvotes: 0

Views: 62

Answers (1)

David Jacquel
David Jacquel

Reputation: 52829

Dirty temporary patch (because of this issue).

In _config.yml, set url: http://matanster.github.io/bloglike or wathever is your production url.

Create a config_dev.yml and add url: http://127.0.0.1

Locally, you can serve with :

bundle exec jekyll serve --config _config.yml,_config_dev.yml

Upvotes: 2

Related Questions