Giter VIP home page Giter VIP logo

Comments (1)

yangchuang avatar yangchuang commented on June 1, 2024 2

I'm a fan of your blog and try to build a blog like yours.

However, I'm not familiar with Ruby and feel sad when try to build when failed by m1 mac .

Hope to provide a dockerfile so that we can build without debugging.

Hi @charlesplus,
I built failed on my M1 mac, too. But I finally made it work.
The default ruby version on macOS is 2.6.*, when ran bundle install, I got "Permission denied" error. If you see the same error, I think you need to install another ruby version (refer to rbenv)
Try below steps:

#1. use macos brew install rbenv   
brew install rbenv ruby-build
#2. list latest stable versions:
rbenv install -l
#3. install a Ruby version:
rbenv install 3.2.2
#4. set the default Ruby version for this machine
rbenv global 3.2.2 
#5 add rbenv path to  ~/.zshrc 
export PATH="$HOME/.rbenv/shims:${PATH}"
#6. enable rbenv path
source ~/.zshrc
#7. install bundler version 2.3.15 
gem install bundler -v 2.3.15
#8. go into your local blog folder,install gems
bundle install
#9 run blog service
npm run dev

from tw93.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.