自分用メモ。
サーバーが起動しない
bundle exec rails s
を実行すると、
Your Ruby version is 2.5.1, but your Gemfile specified 2.3.3
というエラーが出た。
今回、Gemfileのバージョンを2.5.1にしたかったため、Gemfileを書き換えることにした。
Gemfileを書き換える
ディレクトリ内のGemfileを開く
バージョンは3行目に書かれていた
ruby '2.3.3'
これを2.5.5に直す。
保存して再度サーバー起動を試みるも、
Could not find concurrent-ruby-1.1.1 in any of the sources
Run bundle install
to install missing gems.
というエラー発生。
bundle updateの実行
下記のサイトがそのまま役に立った。
bundle update
bundle exec rails s
で解決。