Версия 0.2.4 Перенесена база впапку db и в Docker она будет монтироваться в том.

This commit is contained in:
anibilag 2025-07-09 23:12:59 +03:00
parent 031ccd7505
commit 371d84d7bb
5 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ services:
- .:/app
- /app/node_modules
- ./uploads:/app/uploads
- ./db:/app/db
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true

View File

@ -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\"",

View File

@ -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

View File

@ -5,6 +5,7 @@ const API_BASE = new URL('api', import.meta.env.VITE_API_URL).toString();
export const api = {
async getZones(): Promise<Zone[]> {
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();
},