From a1394d4901424e51e18745aed0166f80e28fecd6 Mon Sep 17 00:00:00 2001 From: fahed Date: Mon, 9 Mar 2026 16:29:20 +0300 Subject: [PATCH] Update NocoDB config for Cloudron - fix DailyStats table ID --- .gitea/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ src/services/dataService.ts | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..e8174c8 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy HiHala Dashboard +on: + push: + branches: [main, master] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Build frontend + run: | + npm ci + npm run build + + - name: Deploy to server + run: | + rsync -a --delete build/ /opt/apps/hihala-dashboard/build/ + rsync -a server/ /opt/apps/hihala-dashboard/server/ \ + --exclude node_modules --exclude .env + + - name: Install deps & restart + run: | + cd /opt/apps/hihala-dashboard/server && npm ci --production + sudo systemctl restart hihala-dashboard diff --git a/src/services/dataService.ts b/src/services/dataService.ts index 02b56cd..9301457 100644 --- a/src/services/dataService.ts +++ b/src/services/dataService.ts @@ -24,7 +24,7 @@ const NOCODB_TOKEN = process.env.REACT_APP_NOCODB_TOKEN || ''; const NOCODB_TABLES = { districts: 'mddorhm0boab99m', museums: 'm1os227987acanj', - dailyStats: 'mbffexltwe14jd3', + dailyStats: 'm9a7kk97xbvtr4m', pilgrimStats: 'mi90dy6w7mt0vp0' };