From 6821b34e0231856a42739250453d57cbb4132831 Mon Sep 17 00:00:00 2001
From: Dan Hunsaker <danhunsaker@gmail.com>
Date: Sun, 22 Dec 2019 00:55:27 -0700
Subject: [PATCH] Correct the Nanobox deploy hooks for order and context
 (#12663)

One hook was actually duplicated incorrectly; this has been fixed. Another hook was re-ordered for better results in actual use.
---
 boxfile.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/boxfile.yml b/boxfile.yml
index 1bc3929c86..c4fd19ce60 100644
--- a/boxfile.yml
+++ b/boxfile.yml
@@ -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:
-- 
GitLab