Created
April 5, 2019 14:45
-
-
Save thsig/8756c871431560e2ce5b415db2050328 to your computer and use it in GitHub Desktop.
Rails example - running rails console inside the container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ garden run module frontend "rails console" | |
Running command rails console in module frontend 🏃 | |
✔ frontend → Getting build status... → Done (took 0.4 sec) | |
Loading development environment (Rails 5.2.2.1) | |
irb(main):001:0> Vote.where(animal: "cat").count | |
(0.7ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."animal" = $1 [["animal", "cat"]] | |
=> 6 | |
irb(main):002:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment