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:
5
run.py
5
run.py
@@ -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)
|
Reference in New Issue
Block a user