@@ -15,11 +15,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to box
|
- name: Deploy to box
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/apps/hub/dist
|
mkdir -p ~/apps/hub/dist ~/apps/hub/scripts
|
||||||
cp -r web/dist/* ~/apps/hub/dist/
|
|
||||||
cp bin/hub-api ~/apps/hub/hub-api
|
cp bin/hub-api ~/apps/hub/hub-api
|
||||||
chmod +x ~/apps/hub/hub-api
|
|
||||||
cp config.yaml ~/apps/hub/config.yaml
|
cp config.yaml ~/apps/hub/config.yaml
|
||||||
cp -r scripts/* ~/apps/hub/scripts/
|
cp -r scripts/. ~/apps/hub/scripts/
|
||||||
|
cp -r web/dist/. ~/apps/hub/dist/
|
||||||
chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/*
|
chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/*
|
||||||
systemctl --user restart hub-api
|
systemctl --user restart hub-api
|
||||||
|
|||||||
+2
-2
@@ -214,9 +214,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Static PWA from web/dist (built by make web); HTML5 mode falls back to index.html for SPA routes.
|
// Static PWA from dist/ next to the binary (CI copies web/dist → dist); HTML5 mode falls back to index.html for SPA routes.
|
||||||
e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
|
e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
|
||||||
Root: "web/dist",
|
Root: "dist",
|
||||||
HTML5: true,
|
HTML5: true,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user