Update NocoDB config for Cloudron - fix DailyStats table ID
This commit is contained in:
30
.gitea/workflows/deploy.yml
Normal file
30
.gitea/workflows/deploy.yml
Normal file
@@ -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
|
||||||
@@ -24,7 +24,7 @@ const NOCODB_TOKEN = process.env.REACT_APP_NOCODB_TOKEN || '';
|
|||||||
const NOCODB_TABLES = {
|
const NOCODB_TABLES = {
|
||||||
districts: 'mddorhm0boab99m',
|
districts: 'mddorhm0boab99m',
|
||||||
museums: 'm1os227987acanj',
|
museums: 'm1os227987acanj',
|
||||||
dailyStats: 'mbffexltwe14jd3',
|
dailyStats: 'm9a7kk97xbvtr4m',
|
||||||
pilgrimStats: 'mi90dy6w7mt0vp0'
|
pilgrimStats: 'mi90dy6w7mt0vp0'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user