mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Add --port to set custom port.
This commit is contained in:
parent
6e40393b6b
commit
1f18221e17
10
main.py
10
main.py
@ -449,6 +449,14 @@ if __name__ == "__main__":
|
|||||||
address = '0.0.0.0'
|
address = '0.0.0.0'
|
||||||
else:
|
else:
|
||||||
address = '127.0.0.1'
|
address = '127.0.0.1'
|
||||||
run(q, address=address, port=8188)
|
|
||||||
|
port = 8188
|
||||||
|
try:
|
||||||
|
p_index = sys.argv.index('--port')
|
||||||
|
port = int(sys.argv[p_index + 1])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
run(q, address=address, port=port)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user