https://prefect.io logo
#prefect-community
Title
# prefect-community
p

Paul Lucas

07/28/2022, 3:47 PM
Hey all Perhaps a strange Q - Does any one have any experience of deploying/running prefect in Heroku? I’m trying to reuse our current Heroku to host our Prefect agent/server, which would point at our cloud backend but even though it appears to be running, the agent doesn’t appear to be querying
1
a

Anna Geller

07/28/2022, 4:59 PM
my experience with Heroku is that it's more for hosting applications rather than managing execution layer would you mind trying some VM like EC2 instead? or if you prefer Heroku, can you explain the problem more? how did you configure your agent? your agent process should poll for flow runs the same way regardless where it's deployed
p

Paul Lucas

07/29/2022, 9:28 AM
To be honest, it was just for a POC with the view to move to EC2 since we already heavily use Heroku. I may have made some progress by adding the following to the
Procfile
Copy code
worker: ./bin/run_prefect.sh
The script simply runs
Copy code
prefect agent local start --no-hostname-label --label $PREFECT_PROJECT
a

Anna Geller

07/29/2022, 12:28 PM
can you perhaps try in a conda virtual environment?
6 Views