Add comprehensive SEO improvements: meta tags, robots.txt, sitemap.xml, and favicon. Fix meta description rendering issues with proper HTML entity encoding. Update port configuration to use PORT environment variable.

This commit is contained in:
2025-08-26 08:29:34 +00:00
parent ae9107705d
commit eedaa253e4
16 changed files with 177 additions and 2 deletions

5
run.py
View File

@@ -13,9 +13,10 @@ app = create_app(config_name)
if __name__ == '__main__':
debug_mode = config_name == 'development'
port = int(os.getenv('PORT', 5000)) # Use PORT env var or default to 5000
# For production deployment, allow unsafe werkzeug or use a proper WSGI server
if config_name == 'production':
socketio.run(app, debug=False, host='0.0.0.0', port=5000, allow_unsafe_werkzeug=True)
socketio.run(app, debug=False, host='0.0.0.0', port=port, allow_unsafe_werkzeug=True)
else:
socketio.run(app, debug=debug_mode, host='0.0.0.0', port=5000)
socketio.run(app, debug=debug_mode, host='0.0.0.0', port=port)