]> cat aescling's git repositories - mastodon.git/commitdiff
Correct the Nanobox deploy hooks for order and context (#12663)
authorDan Hunsaker <danhunsaker@gmail.com>
Sun, 22 Dec 2019 07:55:27 +0000 (00:55 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 22 Dec 2019 07:55:27 +0000 (08:55 +0100)
One hook was actually duplicated incorrectly; this has been fixed. Another hook was re-ordered for better results in actual use.

boxfile.yml

index 1bc3929c86d2feff4fc640461ccc0335b765b3a6..c4fd19ce6039a2c3264f0ae8d923a70c1826cc46 100644 (file)
@@ -60,16 +60,15 @@ deploy.config:
     - touch /app/log/production.log
   before_live:
     web.web:
+      - bin/tootctl cache clear
       - bundle exec rake db:migrate:setup
+  after_live:
+    worker.sidekiq:
       - |-
           if [[ "${ES_ENABLED}" != "false" ]]
           then
             bin/tootctl search deploy
           fi
-      - bin/tootctl cache clear
-  after_live:
-    worker.sidekiq:
-      - bin/tootctl search deploy
 
 
 web.web: