瀏覽代碼

Create bin/deploy

I've extended your magnificent setup with this bin command to deploy the changes in my setup. 

Might it be useful to others in this project too?
Hans Kuijpers 2 年之前
父節點
當前提交
309b5de5d5
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      compose/bin/deploy

+ 19 - 0
compose/bin/deploy

@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+bin/composer install;
+bin/magento maintenance:enable;
+bin/cli rm -rf generated/code var/view_preprocessed;
+
+echo "$ bin/magento cache:flush";
+bin/magento cache:flush;
+
+echo "$ bin/magento setup:upgrade";
+bin/magento setup:upgrade;
+
+echo "$ bin/ magento setup:di:compile";
+bin/magento setup:di:compile;
+
+echo "$ bin/magento setup:static-content:deploy nl_NL en_US -f";
+bin/magento setup:static-content:deploy nl_NL en_US -f;
+
+bin/magento maintenance:disable;
+bin/magento cache:flush;