tests: validate that procfile-path is respected

Refs #5550
This commit is contained in:
Jose Diaz-Gonzalez committed 2022-12-28 13:40:33 -05:00
1 parent 48452558bd
commit d9af6516bb
3 files changed
+25 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
web: python3 web.py
web: python3 web.py second.Procfile
+3
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))