docker FIX

This commit is contained in:
Shiro-Nek0
2026-02-26 00:34:36 -03:00
parent 1e6778f2bf
commit d8b710805f
4 changed files with 18 additions and 2 deletions

4
app.py
View File

@@ -14,7 +14,7 @@ socketio = SocketIO(app, cors_allowed_origins="*")
login_manager = LoginManager(app)
login_manager.login_view = 'login'
DB_FILE = 'pos_database.db'
DB_FILE = 'db/pos_database.db'
CACHE_DIR = 'static/cache'
os.makedirs(CACHE_DIR, exist_ok=True)
@@ -151,4 +151,4 @@ def serve_cache(filename):
if __name__ == '__main__':
init_db()
socketio.run(app, host='0.0.0.0', port=5000, debug=True)
socketio.run(app, host='0.0.0.0', port=5000, debug=True)