Run Ruby code in Rails context
docker compose run --rm web ./bin/rails runner "<ruby code>"
- Kategory
- docker compose
- Description
- Executes arbitrary Ruby code with the full Rails environment loaded inside Docker, useful for one-off data fixes.
- Kontributor
- iarc13
- Upvotes
- ▲ 0