\curl -sSL https://get.rvm.io | bash
rvm install 3.1.4
brew uninstall --ignore-dependencies openssl@3
brew reinstall openssl@1.1
rvm install 3.1.4
OR
rvm install ruby-3.1.4 --with-openssl-dir=/opt/homebrew/opt/openssl@1.1
rvm use 3.1.4
brew install rbenv
rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
rbenv install 3.1.4
rbenv global 3.1.4
rbenv rehash
brew install postgresql@14
brew services start postgresql@14
gem install bundler
For MacOS (likely M-chip), in case you run into an issue related to
NSCFConstantString
, run commands:
spring stop
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
See Reference - NSCFConstantString
bundle install
rails db:setup
rails db:migrate
rails db:seed
rails s
replace APPSIGNAL_PUSH_API_KEY in appsignal.yml with your key from appsignal
push_api_key: "<%= ENV['APPSIGNAL_PUSH_API_KEY'] %>"