mod path to db

This commit is contained in:
David Itehua Xalamihua 2025-08-28 13:02:37 -06:00
parent f31722d04d
commit dd9f44e523

18
main.py
View File

@ -25,7 +25,7 @@ db_path = None
if 'microsoft' in platform.uname().release.lower(): if 'microsoft' in platform.uname().release.lower():
db_path = os.path.join(os.getcwd(), "db_xala_dev/xala_dev.db") db_path = os.path.join(os.getcwd(), "db_xala_dev/xala_dev.db")
elif platform.system() == "Linux": elif platform.system() == "Linux":
db_path = "/var/www/xala.dev/db_xala_dev/xala_dev.db" db_path = "/var/www/david.xala.dev/db_xala_dev/xala_dev.db"
DB = DBSQLite(db_path) DB = DBSQLite(db_path)
@ -153,3 +153,19 @@ def ayuda_template():
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True, port=8088, host='0.0.0.0') app.run(debug=True, port=8088, host='0.0.0.0')