Hi ! I'm trying to run pact-broker-docker in Hero...
# pact-broker
s
Hi ! I'm trying to run pact-broker-docker in Heroku. I think my issue is configuring PACT_BROKER_PORT in the Config Vars. The running port is set dynamically. Notice the log is throwing "*Web process failed to bind to $PORT within 60 seconds of launch*"
Copy code
2022-06-15T20:30:22.926091+00:00 app[web.1]: Use Ctrl-C to stop
2022-06-15T20:30:52.074325+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-06-15T20:30:52.125437+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-06-15T20:30:52.267145+00:00 heroku[web.1]: Process exited with status 137
2022-06-15T20:31:04.337872+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-06-15T20:31:04.380315+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-06-15T20:31:04.558860+00:00 heroku[web.1]: Process exited with status 137
2022-06-15T20:31:05.540549+00:00 heroku[web.1]: State changed from starting to crashed
Thanks on advance 🙂
y
I have a working example without docker here https://github.com/YOU54F/pact-broker-heroku Are you passing the dynamic port into your docker config. Have you got an example of how you are running it
b
There's a special configuration to support heroku.
💡 1
@Yousaf Nabi (pactflow.io) ^^
y
Spot on, I didn't look in the search this time round, so will have found that with a search under heroku I am sure
Yep! My bad
s
Thank you, yes, it was super simple, the first time i read it I did the database variable but missed the port. Setting PACT_BROKER_PORT_ENVIRONMENT_VARIABLE_NAME = PORT works super ! Thank you very much @Beth (pactflow.io/Pact Broker/pact-ruby) & @Yousaf Nabi (pactflow.io)!!
👍🏼 1