Created
April 5, 2019 14:50
-
-
Save thsig/0d6b804219354a6b73daebff352bcd55 to your computer and use it in GitHub Desktop.
Rails example - running rake db:migrate inside a 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 task db-migrate | |
Running task db-migrate π | |
β frontend β Getting build status... β Done (took 0.6 sec) | |
β postgres β Getting build status... β Done (took 0.6 sec) | |
β postgres β Checking status... β Version v-4bf9f73668 already deployed | |
β db-migrate β Running β Done (took 4.2 sec) | |
(0.5ms) SELECT pg_try_advisory_lock(737815420147457505) | |
β³ /usr/local/bundle/bin/rake:23 | |
(0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC | |
β³ /usr/local/bundle/bin/rake:23 | |
ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] | |
β³ /usr/local/bundle/bin/rake:23 | |
(0.2ms) BEGIN | |
β³ /usr/local/bundle/bin/rake:23 | |
(0.2ms) COMMIT | |
β³ /usr/local/bundle/bin/rake:23 | |
(0.3ms) SELECT pg_advisory_unlock(737815420147457505) | |
β³ /usr/local/bundle/bin/rake:23 | |
(0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC | |
β³ /usr/local/bundle/bin/rake:23 | |
pod "run-frontend-1554427107793" deleted | |
Done! βοΈ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment