-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails が起動しない #58
Comments
これですかね https://qiita.com/cyborg__ninja/items/d15b50500f4ffb069feb あとバージョン指定するときアンスコ |
@yas-github 確認お願いします:bow: |
@rexitorg
編集のとこにあるinsert codeじゃだめなんですね。。笑 |
これの通り設定を5.1に変えたらどうなりますか? |
@yas-github |
諦めて一旦ローカルに環境構築しました。ありがとうございました。 |
えーと、設定は試した感じでしょうか? |
お返事ありがとうございます、また遅れてすいません。ローカル環境作れたのでそちらで進めてました。 |
概要
AWSでrails sなどが起動しない
実現したいこと
上記の解消
困っていること
rails チュートリアル3章で、rails new 5.1.6 sample_appとしたところ以下のようにエラーが出ました。
/home/ec2-user/environment/app_sample/config/boot.rb:4:in
require': cannot load such file -- bootsnap/setup (LoadError)https://teratail.com/questions/139727 をみて、gemに
gem 'bootsnap', '>= 1.1.0', require: falseを追加しましたが、さらに以下のエラーが出ました。
/home/ec2-user/.rvm/gems/ruby-2.5.3/gems/railties-5.1.6/lib/rails/application/configuration.rb:81:inload_defaults': Unknown version "5.2" (RuntimeError)
上記ファイルno81行目をみてみると
raise "Unknown version #{target_version.to_s.inspect}"
となっていました。そもそも1週目にはなかったエラーですが、何か間違えているのでしょうか?AWSはrails -v 5.1.6、ruby -v 2.5.3p105です。
*汚くてすいません。。
困っていることがバグの場合は事象やログ、エラーメッセージをできるだけそのまま(抜粋などしない)下記に記載してください。
解決するために行ったこと
問題となっている箇所の予想
問題となっているアプリケーションのGitHub URL
The text was updated successfully, but these errors were encountered: