This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
docker compose build web
docker compose run --rm web bundle install
- Setup secret
docker compose run --rm web rails db:setup
ordocker compose run --rm web rails db:create db:migrate
docker compose up -d
- open
http://localhost:7379/
bundle install --without postgresql
on host if needed
user = User.create!(email: "test@example.com", password: "password")
user.confirm
docker compose build --no-cache web
docker compose run --rm web bundle update
docker compose run --rm web rails db:setup RAILS_ENV=test
docker compose run --rm web rails test -v
docker compose down -v
docker compose exec -T db pg_dump -Fc --no-acl --no-owner -U postgres -w memo-app-r_development >| tmp/memo-app-r_development.pg_dump
docker compose build web
docker compose run --rm web bundle
- Setup secret
docker compose run --rm web rails db:create
docker compose exec -T db pg_restore -cO -d memo-app-r_development -U postgres -w < tmp/memo-app-r_development.pg_dump
docker compose up -d