now the ports cannot be assigned twice, also simmilar application names work

This commit is contained in:
pika 2025-04-03 11:58:17 +02:00
parent e5300424ef
commit e9d1f985ae
7 changed files with 57 additions and 106 deletions

5
run.py
View file

@ -188,8 +188,9 @@ if __name__ == "__main__":
print("Database not found, initializing...")
try:
init_db()
create_admin_user()
# Uncomment to add sample data
# create_admin_user()
# seed_data()
except Exception as e:
print(f"Error initializing database: {e}")
@ -197,7 +198,7 @@ if __name__ == "__main__":
# Run the application
try:
app.run(debug=True, port=5000)
app.run(debug=True, port=5001)
except Exception as e:
print(f"Error starting Flask app: {e}")
sys.exit(1)