mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Robert Brennan <contact@rbren.io>
17 lines
284 B
Python
17 lines
284 B
Python
import os
|
|
|
|
import uvicorn
|
|
|
|
|
|
def main():
|
|
uvicorn.run(
|
|
'openhands.server.listen:app',
|
|
host='0.0.0.0',
|
|
port=int(os.environ.get('port') or '3000'),
|
|
log_level='debug' if os.environ.get('DEBUG') else 'info',
|
|
)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|