tests: validate that procfile-path is respected

Refs #5550
This commit is contained in:
Jose Diaz-Gonzalez
2022-12-28 11:29:26 -05:00
parent 48452558bd
commit d9af6516bb
3 changed files with 25 additions and 1 deletions

View File

@@ -1 +1 @@
web: python3 web.py
web: python3 web.py second.Procfile

View File

@@ -22,6 +22,9 @@ if __name__ == "__main__":
print("Failing on startup due to FAIL_ON_STARTUP=true")
sys.exit(1)
for arg in sys.argv:
print(f"Arg: {arg}")
port = int(os.getenv("PORT", 5000))
server = http.server.HTTPServer(("0.0.0.0", port), GetHandler)
print("Listening on port {0}".format(port))