Missing sitemap.xml causing ruby error
netpoetica opened this issue · 2 comments
➜ project-website git:(qa) jekyll
Configuration from /Users/krosenberg/Desktop/Projects/website/_config.yml
Building site: ./src -> ./public
/Users/krosenberg/Desktop/Projects/website/_plugins/sitemap_generator.rb:126:in `initialize': No such file or directory -/Users/krosenberg/Desktop/Projects/website/public/sitemap.xml (Errno::ENOENT)
from /Users/krosenberg/Desktop/Projects/website/_plugins/sitemap_generator.rb:126:in `new'
from /Users/krosenberg/Desktop/Projects/website/_plugins/sitemap_generator.rb:126:in `generate'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/gems/jekyll-0.12.1/lib/jekyll/site.rb:190:in `block in generate'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/gems/jekyll-0.12.1/lib/jekyll/site.rb:189:in `each'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/gems/jekyll-0.12.1/lib/jekyll/site.rb:189:in `generate'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/gems/jekyll-0.12.1/lib/jekyll/site.rb:40:in `process'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/gems/jekyll-0.12.1/bin/jekyll:264:in `<top (required)>'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/bin/jekyll:23:in `load'
from /Users/krosenberg/.rvm/gems/ruby-1.9.3-p327/bin/jekyll:23:in `<main>'
Not sure why this script is trying to reach into the public folder like that, or why it cares about whether this file exists? Any ideas?
I see this in the instructions: "A sitemap.xml should be included in your _site folder."
It may be an issue that the project I am currently working on is not using a "_site" folder, but a folder called "src"?
Mac OSX with rvm using Ruby 1.9.3
Thanks so much,
- Keith
This actually may have been an issue with me changing the string for "sitemap.xml", or altering this plugin in some incorrect way. I saved the file again and ran it and did not have any trouble - must have been something I changed. I changed very, very little in the file so I didn't consider that it might be something I did.
Thanks!
UPDATE: There is an issue with the download on your main page. That download causes this error. Downloading the file from Github, this error goes away.