add warning about serve not being suitable for production
This commit is contained in:
parent
67bb8c2266
commit
816e65a00c
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ def main() -> None:
|
||||||
(args.address, args.port), http.server.SimpleHTTPRequestHandler
|
(args.address, args.port), http.server.SimpleHTTPRequestHandler
|
||||||
)
|
)
|
||||||
print(f"serving at http://{args.address}:{args.port}")
|
print(f"serving at http://{args.address}:{args.port}")
|
||||||
|
print("THIS WEB SERVER IS ONLY MEANT FOR LOCAL TESTING, IT IS NOT SUITABLE FOR PRODUCTION")
|
||||||
try:
|
try:
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue