policy-bot icon indicating copy to clipboard operation
policy-bot copied to clipboard

Add var ENV PORT for run in Cloud serverless

Open jniltinho opened this issue 1 year ago • 2 comments

Add var ENV PORT + POLICYBOT_PORT

export PORT=8080 or POLICYBOT_PORT=8080

Run on Cloud requer default var $PORT in env serverless Or add flags --port in command line

jniltinho avatar Sep 20 '22 18:09 jniltinho

Run:

env POLICYBOT_PORT=$PORT ./policy-bot

jniltinho avatar Sep 20 '22 18:09 jniltinho

Fix !!

jniltinho avatar Sep 20 '22 18:09 jniltinho

Hey @jniltinho, it sounds like you found a solution for this by setting POLICYBOT_PORT. If that still doesn't work, or you need to use exactly the PORT variable, we may be able to implement something like https://github.com/palantir/bulldozer/pull/229 in Policy Bot.

bluekeyes avatar Sep 23 '22 19:09 bluekeyes