Running Jekyll on local
Ensure that the Ruby version is up to date: Check available version
rbenv install -l
Now confirm:
ruby -v
Should say: ruby 3.2.2
Install Bundler & Jekyll (Fresh)
Now that you’re in a clean Ruby environment:
gem install bundler
gem install jekyll
Check:
bundler -v
jekyll -v
Install Project Dependencies from inside your Jekyll project:
bundle install
Then run your site:
bundle exec jekyll serve
Then check on browser :
Server address: http://127.0.0.1:4000 #this can be different
You can use the npm start
for the shortcut