From 371d84d7bbc237cd1d294729aacf09b6c99089d4 Mon Sep 17 00:00:00 2001 From: anibilag Date: Wed, 9 Jul 2025 23:12:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.2.4=20?= =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B1=D0=B0=D0=B7=D0=B0=20=D0=B2=D0=BF=D0=B0=D0=BF=D0=BA=D1=83?= =?UTF-8?q?=20db=20=D0=B8=20=D0=B2=20Docker=20=D0=BE=D0=BD=D0=B0=20=D0=B1?= =?UTF-8?q?=D1=83=D0=B4=D0=B5=D1=82=20=D0=BC=D0=BE=D0=BD=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D0=B2=20=D1=82?= =?UTF-8?q?=D0=BE=D0=BC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lawn_scheduler.db => db/lawn_scheduler.db | Bin 20480 -> 20480 bytes docker-compose.dev.yml | 1 + package.json | 2 +- server/index.js | 2 +- src/services/api.ts | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) rename lawn_scheduler.db => db/lawn_scheduler.db (96%) diff --git a/lawn_scheduler.db b/db/lawn_scheduler.db similarity index 96% rename from lawn_scheduler.db rename to db/lawn_scheduler.db index a7d1b9050a74f88c339e04f05a8eea26ed969de3..f5befce0de3742e7dad6f1b56d32b4ef519121c7 100644 GIT binary patch delta 247 zcmZozz}T>Wae_3X*F+g-Rxbv&LZD!<4;{DGr#NWofg!?|%W?mDX z^W5S*T|7RU6$K`9r6loiG04U%GBO%7$X=LqvGu~f3tRL{3v%)kQ;PL7a}(23bq&o; zjSS2T%nc2UEDUrFjm%683``C63i8s842(>54a{{7O!znuYz0FDD-&ZYQ?tyxlGLKI z#GJ|E(&;QbCm7TwH%TiQTXF$yWPsYZ_`+tOjl1ERjrqh7Yy~3&D^mk21B1!er9U$9 U&YOHn<_Zhn1%|}Ui)7=B0O0sWEC2ui delta 126 zcmV-^0D=F2paFoO0gxL3NRb>v1xNrciW0G8oev)j$N&rr7Xc1p4gU`k4~7k%3*QTV z4KxhT3l|KE3{0~TAomKB7aL~;UknNWlY$!}8#FF4I51ic2r@7-H7zhVEig17F)%tb gGdeXklPnw{liwTZ0uIoV${f@LUkVBUv!WedGC4aT%K!iX diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index f3ac887..29ee2c4 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -14,6 +14,7 @@ services: - .:/app - /app/node_modules - ./uploads:/app/uploads + - ./db:/app/db environment: - NODE_ENV=development - CHOKIDAR_USEPOLLING=true diff --git a/package.json b/package.json index 5222405..c5f43e0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.2.3", + "version": "0.2.4", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/server/index.js b/server/index.js index c10bcf4..c9ea70a 100644 --- a/server/index.js +++ b/server/index.js @@ -57,7 +57,7 @@ const upload = multer({ // Initialize libsql database const db = createClient({ - url: 'file:lawn_scheduler.db' + url: 'file:db/lawn_scheduler.db' }); // Create mowers table diff --git a/src/services/api.ts b/src/services/api.ts index aacf8ee..ce08c03 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -5,6 +5,7 @@ const API_BASE = new URL('api', import.meta.env.VITE_API_URL).toString(); export const api = { async getZones(): Promise { const response = await fetch(`${API_BASE}/zones`); + console.log(`${API_BASE}/zones`); if (!response.ok) throw new Error('Failed to fetch zones'); return response.json(); },