Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 428 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 428 Bytes

README

初回起動

// $ docker-compose run web rails new . --api --force --no-deps --database=postgresql
$ docker compose build
$ docker compose run api rails db:create
$ docker compose run api rails db:migrate

起動

$ docker compose up

http://0.0.0.0:3000

pre-commit

commit 時にrubocop を起動させる設定

cp pre-commit.sample .git/hooks/pre-commit
chmod a+x .git/hooks/pre-commit