Apple Silicon (ARM Mac) + macOS 15 で開発環境を動くように修正#324
Merged
Conversation
338419c to
b911ef1
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Apple Silicon Mac + macOS 15 環境で
bundle installが失敗する問題を修正し、開発環境が動くようにした。変更内容
libv8を Gemfile から削除therubyracerを Gemfile から削除pgを~> 0.18→~> 1.5.0に更新nio4rが 2.5.8 → 2.7.5 に更新(自動)package.jsonの Node 制約を"16.x"→">= 16"に緩和yarn installできるように注意事項
NODE_OPTIONS=--openssl-legacy-providerの設定が必要。~/.zshrc等にexport NODE_OPTIONS=--openssl-legacy-providerを追加しておくと楽rails s前にアセットのコンパイルが必要:bundle exec rails db:migrate RAILS_ENV=testで構築(db:schema:loadは schema.rb が MySQL 形式のため使えない)Test plan
bundle installが成功するrails sでアプリが起動するbundle exec rspec全426テスト通過(0 failures)