This is a continuation of Beginner's Procedure Manual 1. This time, we will create a Rails template.
Create a Rails application Execute in the specified directory on the terminal
% rails _Ver.Designation_new app name-d RDBMS name(mysql etc.)
File character code setting (if necessary)
config/database.yml
#Remove m4
encoding: utf8
Database creation
% rails db:create
Addition (if necessary) so that unnecessary files are not created When creating a controller with rails g To create a test file etc. automatically
config/application.rb
#abridgement
module app name
class Application < Rails::Application
config.load_defaults 6.0
config.generators do |g|
g.stylesheets false
g.javascripts false
g.helper false
g.test_framework false
end
end
end
GitHub List files you don't want to commit
.gitignore:.gitignore
public/uploads/*
Describe the database design and application information in the README.
Recommended Posts