[RUBY] [Rails 6] RuntimeError with $ rails s

Overview

Note that it will appear every time with the first Rails s after building the environment It is a prerequisite for building a rails environment using bundle.

When I do $ rails s, I get the following error ...

$ 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)

solution

The error text says Please run rails webpacker: install, so just run it!

$ bundle exec rails webpacker:install

This is OK!

Recommended Posts

[Rails 6] RuntimeError with $ rails s
Rails deploy with Docker
Handle devise with Rails
[Rails] Learning with Rails tutorial
[Rails] Test with RSpec
[Rails] Development with MySQL
Supports multilingualization with Rails!
Double polymorphic with Rails
[Heroku] Associate AWS S3 with the deployed Rails app
When the server does not start with rails s
Introduced graph function with rails
[Rails] Express polymorphic with graphql-ruby
[Rails] Upload videos with Rails (ActiveStorage)
Try using view_component with rails
Japaneseize using i18n with Rails
API creation with Rails + GraphQL
Preparation for developing with Rails
Run Rails whenever with docker
[Docker] Rails 5.2 environment construction with docker
Use multiple databases with Rails 6.0
[Rails] Specify format with link_to
Login function implementation with rails
[Docker] Use whenever with Docker + Rails
[Rails] Create API to download files with Active Storage [S3]
Rails + MySQL environment construction with Docker
Create portfolio with rails + postgres sql
[Rails] Push transmission with LINE Bot
Implemented mail sending function with rails
[Rails] Creating a new project with rails new
Minimal Rails with reduced file generation
Create pagination function with Rails Kaminari
Build environment with vue.js + rails + docker
Eliminate Rails FatModel with value object
Recognize Rails projects with Intellij idea
[Grover] Generate PDF with Rails [2020 version]
Build Rails environment with Docker Compose
[Rails] Initial data creation with seed
Track Rails app errors with Sentry
[Environment construction with Docker] Rails 6 & MySQL 8
Connect to Rails server with iPhone
How to get along with Rails
Create My Page with Rails devise
Introducing React to Rails with react-rails
Initial data input with [Rails] seed_fu!
Timeless search with Rails + JavaScript (jQuery)
Let's unit test with [rails] Rspec!
About the problem that the server can not be started with rails s
[Rails] Video does not play with video_tag
Generate Dart client code with Rails + apipie
[Rails] Benefit from rubycop with minimal effort
[Ruby on Rails] View test with RSpec
[Rails6] Create a new app with Rails [Beginner]
[Rails] Manage secret keys etc. with credentials.yml
Rails environment construction with Docker (personal apocalypse)
Easy deployment with Capistrano + AWS (EC2) + Rails
Building Rails 6 and PostgreSQL environment with Docker
Deploy heroku with Rails6 (Cloud9 + Ubuntu) + MySQL
Create Rails 6 + MySQL environment with Docker compose
Deploy to heroku with Docker (Rails 6, MySQL)
Upload Rails app image file to S3
Prepare the format environment with "Rails" (VScode)