Solving M1 chip MacBook with a hard time running rails new to create a new project using Ruby version 3.2.2.
brew install [email protected]
brew link --overwrite [email protected] --force
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# Install Dependencies
bundle install
# Databse Related Setup
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed
# Start the Backend Server
bundle exec rails server -p 3000
# Install Dependencies
yarn install
# Building Frontend
yarn build
# Start the Client
yarn start