Fix hot reloading backend with new updates to Task

This commit is contained in:
Jamie Curnow 2023-02-19 15:11:22 +10:00
parent a2b4fbc36f
commit 80315bd50e
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
3 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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

View File

@ -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