From 337b3e5b5d7cd22fb4b9c9ed6367e993b4536112 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 23 Feb 2022 16:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=88=E7=AB=AF=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd b/cmd index 66e6a7b6..f7a7952b 100755 --- a/cmd +++ b/cmd @@ -117,6 +117,13 @@ run_electron() { mkdir -p ./electron/public cp ./electron/index.html ./electron/public/index.html # + if [ "$argv" == "dev" ]; then + run_exec php "php bin/run --mode=dev" + else + run_exec php "php bin/run --mode=prod" + fi + supervisorctl_restart php + # if [ "$argv" != "dev" ] && [ "$argv" != "--nobuild" ]; then npx mix --production -- --env --electron fi