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