Skip to content

Commit a7fb0d9

Browse files
author
root
committed
fix i18n, improve catalog
1 parent 00c8568 commit a7fb0d9

117 files changed

Lines changed: 7982 additions & 39425 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ help:
4141
@echo " make build Build all (backend + web)"
4242
@echo " make build backend Build Go binary → backend/appos"
4343
@echo " make build web Build React app → web/dist"
44-
@echo " make sync-store Refresh web/public/store/*.json from artifact.websoft9.com"
44+
@echo " make sync-store Refresh backend/domain/catalog/seed/*.json from artifact.websoft9.com"
4545
@echo " make run Copy artifacts + restart services (~10s)"
4646
@echo " make run 9092 Copy artifacts + restart on custom port"
4747
@echo " make redo Full rebuild: build + image, then replace container/volumes + start dev"
@@ -199,37 +199,37 @@ tidy:
199199
@echo "✓ Go modules tidied"
200200

201201
sync-store:
202-
@echo "Refreshing web store JSON files..."
202+
@echo "Refreshing backend catalog seed JSON files..."
203203
@set -e; \
204204
base_url="https://artifact.websoft9.com/release/websoft9/store"; \
205-
for file in web/public/store/*.json; do \
205+
for file in backend/domain/catalog/seed/*.json; do \
206206
name=$$(basename "$$file"); \
207207
tmp_file="$$file.tmp"; \
208208
echo "$$name"; \
209209
curl -fsSL "$$base_url/$$name" -o "$$tmp_file"; \
210210
mv "$$tmp_file" "$$file"; \
211211
done
212-
@echo "Web store JSON refreshed"
212+
@echo "Backend catalog seed JSON refreshed"
213213

214214
build:
215215
ifeq ($(ARG2),backend)
216216
@echo "Building backend binaries (static, no dependencies)..."
217+
@$(MAKE) sync-store
217218
@$(MAKE) openapi-sync
218219
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos ./cmd/appos
219220
@echo "✓ Backend built → backend/appos (statically linked)"
220221
else ifeq ($(ARG2),web)
221-
@$(MAKE) sync-store
222222
@echo "Building web app..."
223223
@cd web && npm run build
224224
@echo "✓ Web app built → web/dist/"
225225
else ifeq ($(ARG2),library)
226226
@echo "'make build library' is no longer needed - library is downloaded during Docker build (cached)"
227227
else
228228
@echo "Building all..."
229+
@$(MAKE) sync-store
229230
@$(MAKE) openapi-sync
230231
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos ./cmd/appos
231232
@echo "✓ Backend built → backend/appos"
232-
@$(MAKE) sync-store
233233
@cd web && npm run build
234234
@echo "✓ Web app built → web/dist/"
235235
@echo "✓ All built"

Note.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,6 @@ addons 的 netdata restart 报错
148148

149149
1. 明确 curl/wget, tar,unzip 等目前是走容器命令,还是走的 golang 包
150150

151-
数据初始化怎么做的?
151+
数据初始化怎么做的?
152+
153+
rss hub 网站

0 commit comments

Comments
 (0)