Open Roger-luo opened 8 years ago
The issue is probably that bundle install
installed the gems to some location other than the system-wide location. Thus, bundle exec jekyll serve
works because it is using a different gem location, with all the correct gems installed.
Tested on my machine:
$ git clone git@github.com:nandomoreirame/dotX.git
Cloning into 'dotX'...
$ cd dotX/
$ bundle install --path vendor/bundle
Fetching gem metadata from http://rubygems.org/.............
. . .
$ bundle exec jekyll serve
Configuration file: /home/mkasberg/code/dotX/_config.yml
Source: source
Destination: _site
Generating...
done.
Auto-regeneration: enabled for 'source'
Configuration file: /home/mkasberg/code/dotX/_config.yml
Server address: http://127.0.0.1:4000/dotX/
Server running... press ctrl-c to stop.
I'd recommend using local dependencies (--path vendor/bundle
) and always using bundle exec
since it removes the possibility of dependency conflicts with other packages at the system level. If you'd like, I can create a pull request to update the readme.
when I use
and then
but the following error occurs:
But
works fine