概要
環境構築して初の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です!