Skip to content

Ko-s-y/zenn-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

共通

  • build, up
docker compose build --no-cache
docker compose up

FRONTEND

  • nextコンテナ内へ
docker compose exec next /bin/bash
  • nextコンテナ内でserver起動
npm run dev
  • npm install
docker compose run --rm next npm install
  • lint
docker compose run --rm next npm run lint
  • lintルール違反自動修正
docker compose run --rm next npm run format

BACKEND

  • railsコンテナ内へ
docker compose exec rails /bin/bash
  • railsコンテナ内でserver起動
rails s -b '0.0.0.0'
  • bundle install
docker compose run --rm rails bundle install
  • rubocop
docker compose run --rm rails rubocop
  • rubocopルール違反自動修正
docker compose run --rm rails rubocop -A