質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

1回答

2018閲覧

rails s でサーバーが起動できない

退会済みユーザー

退会済みユーザー

総合スコア0

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2019/11/27 08:05

rails s でサーバーを起動しようとすると以下のようなエラーが出てしまいサーバーが起動できません。
どうするとサーバーを起動できるようになるのでしょうか
わかる方いたら教えていただけると幸いです

Ruby

1=> Booting Puma 2=> Rails 6.0.1 application starting in development 3=> Run `rails server --help` for more startup options 4Exiting 5Traceback (most recent call last): 6 51: from bin/rails:4:in `<main>' 7 50: from bin/rails:4:in `require' 8 49: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands.rb:18:in `<top (required)>' 9 48: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/command.rb:46:in `invoke' 10 47: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/command/base.rb:65:in `perform' 11 46: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' 12 45: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 13 44: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 14 43: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:138:in `perform' 15 42: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:138:in `tap' 16 41: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:147:in `block in perform' 17 40: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:37:in `start' 18 39: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout' 19 38: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app' 20 37: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app' 21 36: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config' 22 35: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file' 23 34: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string' 24 33: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval' 25 32: from config.ru:in `<main>' 26 31: from config.ru:in `new' 27 30: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize' 28 29: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval' 29 28: from config.ru:3:in `block in <main>' 30 27: from config.ru:3:in `require_relative' 31 26: from C:/Users/OzekiHaruya/sample_app/config/environment.rb:5:in `<top (required)>' 32 25: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/application.rb:363:in `initialize!' 33 24: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/initializable.rb:60:in `run_initializers' 34 23: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each' 35 22: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each' 36 21: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component' 37 20: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `call' 38 19: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:347:in `each' 39 18: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component' 40 17: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from' 41 16: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 42 15: from C:/Ruby25-x64/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each' 43 14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/initializable.rb:61:in `block in run_initializers' 44 13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `run' 45 12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `instance_exec' 46 11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/railtie.rb:84:in `block in <class:Engine>' 47 10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker.rb:27:in `bootstrap' 48 9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/commands.rb:31:in `bootstrap' 49 8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/manifest.rb:18:in `refresh' 50 7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/manifest.rb:83:in `load' 51 6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:51:in `public_manifest_path' 52 5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:47:in `public_output_path' 53 4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:43:in `public_path' 54 3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:84:in `fetch' 55 2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:88:in `data' 56 1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:91:in `load' 57C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/webpacker-4.2.0/lib/webpacker/configuration.rb:95:in `rescue in load': Webpacker configuration file not found C:/Users/OzekiHaruya/sample_app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - C:/Users/OzekiHaruya/sample_app/config/webpacker.yml (RuntimeError) 58

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

railsのバージョンが6になったからだと思います。
やり方は二通りあります。
1つは、rails new時にバージョン指定を指定し、5などにする方法です。
この方法だと一からになってしまいますけど、、、

もう一つは、webpackerをインストールする方法です。
エラー文の最終行に『Please run rails webpacker:install Error: No such file or directory』とありますよね?
なので、webpackerをインストールしてあげれば解決します。
やり方はこちらを参照してください。

投稿2019/11/27 08:39

kobu

総合スコア118

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問