diff --git a/boxfile.yml b/boxfile.yml
index 1bc3929c86d2feff4fc640461ccc0335b765b3a6..c4fd19ce6039a2c3264f0ae8d923a70c1826cc46 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: