Skip to content

Railsの環境を気軽に立ち上げたかっただけ

Notifications You must be signed in to change notification settings

yuta-ron/rails-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails6.0の環境を簡単に作りたかっただけ

  1. Clone
git clone
  1. Project Initialization
docker-compose run web rails new . --force --no-deps --database=mysql
  1. Edit database.yml
default: &default
  adapter: mysql2
  encoding: utf8mb4
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: root
  password: root
  host: db
  1. Create src/config/webpacker.yml https://raw.githubusercontent.com/rails/webpacker/master/lib/install/config/webpacker.yml

  2. Run

docker-compose up

About

Railsの環境を気軽に立ち上げたかっただけ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published