mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 05:18:12 -05:00
Fix hot reloading backend with new updates to Task
This commit is contained in:
parent
a2b4fbc36f
commit
80315bd50e
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ vendor
|
|||||||
bin/*
|
bin/*
|
||||||
backend/config.json
|
backend/config.json
|
||||||
backend/embed/assets
|
backend/embed/assets
|
||||||
|
backend/.task
|
||||||
test/node_modules
|
test/node_modules
|
||||||
*/node_modules
|
*/node_modules
|
||||||
docs/.vuepress/dist
|
docs/.vuepress/dist
|
||||||
|
@ -14,6 +14,7 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- task: locale
|
- task: locale
|
||||||
- task: build
|
- task: build
|
||||||
|
force: true
|
||||||
- cmd: echo -e "==> Running..."
|
- cmd: echo -e "==> Running..."
|
||||||
silent: true
|
silent: true
|
||||||
- cmd: ../dist/bin/server
|
- cmd: ../dist/bin/server
|
||||||
|
@ -11,6 +11,7 @@ if [ "$DEVELOPMENT" == "true" ]; then
|
|||||||
mkdir -p "$GOPATH"
|
mkdir -p "$GOPATH"
|
||||||
chown -R npmuser:npmuser "$GOPATH"
|
chown -R npmuser:npmuser "$GOPATH"
|
||||||
export HOME GOPATH
|
export HOME GOPATH
|
||||||
|
rm -rf /app/backend/.task
|
||||||
cd /app/backend || exit 1
|
cd /app/backend || exit 1
|
||||||
s6-setuidgid npmuser task -w
|
s6-setuidgid npmuser task -w
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user