Add port
This commit is contained in:
parent
da5a322a1d
commit
12f36d905e
1 changed files with 3 additions and 2 deletions
|
|
@ -33,9 +33,10 @@ def init(input, output):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if len(sys.argv) == 3:
|
if len(sys.argv) == 4:
|
||||||
conf_path = sys.argv[1]
|
conf_path = sys.argv[1]
|
||||||
out_path = sys.argv[2]
|
out_path = sys.argv[2]
|
||||||
|
port = sys.argv[3]
|
||||||
else:
|
else:
|
||||||
print("Error: need two args <input conf> <output file>")
|
print("Error: need two args <input conf> <output file>")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
@ -56,4 +57,4 @@ if __name__ == "__main__":
|
||||||
else:
|
else:
|
||||||
return f"<p>Error: Player {name} not found"
|
return f"<p>Error: Player {name} not found"
|
||||||
|
|
||||||
app.run(debug=True)
|
app.run(host="0.0.0.0", port=port)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue