[RUBY] [Beginner] I stumbled upon launching a project with Rails6

Check version of ruby, install

$ ruby --version

If the version of ruby is 2.5.0 or higher, it will work. However, the latest version is faster in adding methods and processing. Now 2.7.1 seems to be the stable version.

# Install the latest ruby
$ rbenv install 2.7.1 

Launching a project with rails6

$ mkdir sample_app
$ cd sample_app

#ruby version change
$ rbenv local 2.7.1

#rails6 installation
$ gem install rails -v '6.0.0'

#DB is changing to PostgreSQL
$ rails _6.0.0_ new -d postgresql

$rails s

Stumble point

Normally it will start up with the above, but when using rails 6 for the first time

$ rails s

=> Booting Puma
=> Rails 6.0.0.rc2 application starting in development 
=> Run `rails server --help` for more startup options

RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
/home/ubuntu/.rvm/gems/ruby-2.6.3/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:91:in `rescue in load': Webpacker configuration file not found /home/ubuntu/environment/test-app1/config/webpacker.yml. 
Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/ubuntu/environment/test-app1/config/webpacker.yml (RuntimeError)

I get this error. This is an error that webpacker could not be installed

$ rails webpacker:install 

If you do, it will be solved. again,

$ rails s

If you carry out

スクリーンショット 2020-07-26 11.45.52.png

Recommended Posts

[Beginner] I stumbled upon launching a project with Rails6
[Rails6] Create a new app with Rails [Beginner]
[Rails 5] Create a new app with Rails [Beginner]
A note of what I stumbled upon and noticed in catching up with Laravel from Rails
I made a LINE bot with Rails + heroku
I made a portfolio with Ruby On Rails
Note that I stumbled upon building the Rails environment
[Rails] Launch a new project
I tried Rails beginner [Chapter 1]
I tried Rails beginner [Chapter 2]
I made a development environment with rails6 + docker + postgreSQL + Materialize.
[Rails] I tried to create a mini app with FullCalendar
I came across a guy with two dots in Rails
[Rails] I made a simple calendar mini app with customized specifications.
Build a Java project with Gradle
I want to add a browsing function with ruby on rails
I made a GUI with Swing
I got a warning message with the rails _6.0.3_ new hello_myapp command
Create a Maven project with a command
I tried to make a group function (bulletin board) with Rails
I built a rails environment with docker and mysql, but I got stuck
A note of someone who stumbled when trying to create a Rails project
[Spring Boot] I stumbled upon a method call count test (Spock framework)
[Rails withdrawal] Create a simple withdrawal function with rails
I tried playing with BottomNavigationView a little ①
I made a risky die with Ruby
Make a login function with Rails anyway
I stumbled upon Netbeans + JDBC + Amazon Athena
I made a rock-paper-scissors app with kotlin
Make a site template easily with Rails
I made a rock-paper-scissors app with android
What I stumbled upon when installing Laravel-filemanager
Rails6 I want to make an array of values with a check box
I rewrote the Rails tutorial test with RSpec
[Rails] rails new to create a database with PostgreSQL
04. I made a front end with SpringBoot + Thymeleaf
I made a mosaic art with Pokemon images
Create a team chat with Rails Action Cable
[Swift] [Beginner] I searched a lot about #selector
Let's make a search function with Rails (ransack)
I built a Code Pipeline with AWS CDK.
I want to play with Firestore from Rails
Add a project in any folder with Gradle
I tried to break a block with java (1)
[Rails] I want to load CSS with webpacker
[Azure] I tried to create a Java application for free ~ Connect with FTP ~ [Beginner]
Docker command to create Rails project with a single blow in environment without Ruby