5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Rails6】$ rails s でRuntimeError

Posted at

概要

環境構築して初のRails sで毎回出るのでメモ
bundleを使ってのrailsの環境構築前提です。

$ rails sをすると下記エラーが、、、

$ bundle exec rails s
=> Booting Puma
=> Rails 6.0.3.2 application starting in development 
=> Run `rails server --help` for more startup options
Exiting
Traceback (most recent call last)

.....

.....

Webpacker configuration file not found /Users/hoge_app/config/webpacker.yml. 
Please run rails webpacker:install 
Error: No such file or directory @ rb_sysopen - /Users/hoge_app/config/webpacker.yml (RuntimeError)

解決策

エラー文の中にPlease run rails webpacker:installと書いておりますので、その通り実行するだけです!

$ bundle exec rails webpacker:install

これでOKです!

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?