fix db creation

This commit is contained in:
Francesco De Carlo 2025-08-01 20:56:48 +02:00
parent 58f585b065
commit 248c9bc278
3 changed files with 18 additions and 18 deletions

View file

@ -45,6 +45,6 @@ def join():
return {"success": True, "ws": f"/ws/{room_id}"} return {"success": True, "ws": f"/ws/{room_id}"}
init_db()
if __name__ == "__main__": if __name__ == "__main__":
init_db()
app.run(debug=True) app.run(debug=True)

View file

@ -2,5 +2,5 @@ import sqlite3
def get_connection(): def get_connection():
conn = sqlite3.connect("jukebox.db") conn = sqlite3.connect(".data/jukebox.db")
return conn return conn

View file

@ -1,18 +1,18 @@
services: services:
backend: backend:
build: ./backend build: ./backend
ports: ports:
- 5001:5000 - 5001:5000
environment: environment:
NODE_ENV: development NODE_ENV: development
volumes: volumes:
- ./backend:/app - ./backend:/app
- ./.data/jukebox.sqlite3:/app/.data/jukebox.sqlite3 - ./.data:/app/.data
frontend: frontend:
build: ./frontend build: ./frontend
ports: ports:
- 5173:5173 - 5173:5173
volumes: volumes:
- ./frontend:/app - ./frontend:/app
- /app/node_modules - /app/node_modules