Danielchris145/TruthCheck-AI
0
1import os2 3# Import the create_app function from your app.py4from app import create_app5 6# Create the Flask application instance7app = create_app()8 9if __name__ == "__main__":10 print("๐ Starting TruthCheck System...")11 print("๐ Flask Backend: http://127.0.0.1:5000") # Updated to 127.0.0.1 for local access12 13 # Run the Flask application14 # debug=True enables reloader and debugger, useful during development15 # host='0.0.0.0' makes the server accessible from other devices on the network16 # port=5000 is the default Flask port17 # Create the database in a writable location if needed (e.g., /tmp/history.db for read-only systems)18 # For now, we keep it local, but ensure the folder is writable in Docker19 port = int(os.environ.get("PORT", 7860))20 app.run(debug=False, host='0.0.0.0', port=port)21 