mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 16:00:38 +00:00
feat: allow to configure port via envar (#407)
This commit is contained in:
@@ -76,10 +76,11 @@ class DenoLS(LanguageServerWebSocketHandler):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
port = int(os.environ.get("PORT", "3001"))
|
||||
app = web.Application([
|
||||
(r"/ws/pyright", PyrightLS),
|
||||
(r"/ws/black", DiagnosticLS),
|
||||
(r"/ws/deno", DenoLS),
|
||||
])
|
||||
app.listen(3001, address="0.0.0.0")
|
||||
app.listen(port, address="0.0.0.0")
|
||||
ioloop.IOLoop.current().start()
|
||||
|
||||
Reference in New Issue
Block a user