Browse Source

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.
Dan Hunsaker 7 months ago
parent
commit
6821b34e02
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      boxfile.yml

+ 3
- 4
boxfile.yml View File

@@ -60,16 +60,15 @@ deploy.config:
60 60
     - touch /app/log/production.log
61 61
   before_live:
62 62
     web.web:
63
+      - bin/tootctl cache clear
63 64
       - bundle exec rake db:migrate:setup
65
+  after_live:
66
+    worker.sidekiq:
64 67
       - |-
65 68
           if [[ "${ES_ENABLED}" != "false" ]]
66 69
           then
67 70
             bin/tootctl search deploy
68 71
           fi
69
-      - bin/tootctl cache clear
70
-  after_live:
71
-    worker.sidekiq:
72
-      - bin/tootctl search deploy
73 72
 
74 73
 
75 74
 web.web:

Loading…
Cancel
Save