Skip to content

Commit

Permalink
use heroku assigned port
Browse files Browse the repository at this point in the history
  • Loading branch information
grymmy committed Dec 9, 2024
1 parent 02bc5df commit 0056d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def send_my_headers(self):
self.send_header("Cross-Origin-Opener-Policy", "same-origin")

if __name__ == '__main__':
server.test(HandlerClass=MyHTTPRequestHandler, port=80)
server.test(HandlerClass=MyHTTPRequestHandler, port=os.environ.get('PORT', 8080))

0 comments on commit 0056d39

Please sign in to comment.