Installing Jekyll on macOS Ventura - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Livid
74.2D
458.32D
V2EX    Jekyll

Installing Jekyll on macOS Ventura

  •  
  •   Livid
    PRO
    2023-01-05 07:12:41 +08:00 2006 次点击
    这是一个创建于 1009 天前的主题,其中的信息可能已经有所发展或是发生改变。

    I have been following this tutorial by Sean Boots on how to install Jekyll on previous versions of macOS. It worked really well and provided a smooth installation process. However, since the latest version of macOS (Ventura) still ships with Ruby 2.6, some Gems started to complain about that. So, I found a new method that uses the excellent rbenv project to install a newer version of Ruby.

    1. Install rbenv with Homebrew.

    brew install rbenv ruby-build 

    Add this to ~/.zshrc if you are using zsh:

    eval "$(rbenv init - zsh)" 

    2. Change to your Jekyll blog's work directory, and install a newer version of Ruby:

    rbenv install 3.1.3 

    3. Activate it for your Jekyll:

    rbenv local 3.1.3 

    Check if you have got the desired version:

    ruby -v 

    It should output something like this:

    ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin22] 

    If you see an older version like this:

    ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22] 

    Check previous steps.

    4. Install the two essential gems:

    gem install bundler jekyll 

    5. Set bundle to use a local folder inside your website:

    bundle config set --local path 'vendor/bundle' 

    6. Install the rest of gems:

    bundle install 

    If you encounter any issues with any Gems, try deleting the Gemfile.lock and running the command again.

    7. Exclude the vendor folder in your Jekyll config file, for example:

    exclude: - .ruby-gemset - .ruby-version - Gemfile - Gemfile.lock - Makefile - README.md - vendor/ 

    You will also need to add the following lines into .gitignore:

    vendor/ .bundle/ 

    8. Your Jekyll installation is now set up and ready to use. To launch a live preview, try running the following command:

    bundle exec jekyll serve --watch 

    I hope you are enjoying the ride. However, if you found the process complex and difficult, you are not alone. That is also part of the reason I started working on Planetable.xyz, a static site generator with a graphical interface and a built-in IPFS node. With the Planet app, you don't need any command line knowledge to start blogging and self-hosting on your Mac. You don't even need an account or cloud because Planet has a built-in IPFS node that can help you publish your blog directly to the Internet as an InterPlanetary Name. You can later link that InterPlanetary Name (IPNS) to your Ethereum Name (.eth name). Since both IPFS and ENS are not controlled by any single entity, you can publish your blog in a fully decentralized way.

    目前尚无回复
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1065 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 30ms UTC 18:21 PVG 02:21 LAX 11:21 JFK 14:21
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86