优化终端命令
This commit is contained in:
7
cmd
7
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
|
||||
|
||||
Reference in New Issue
Block a user