Deploy to heroku #1814
-
Hello, right now I am trying to deploy LangFuse to heroku. My heroku.yml : setup:
addons:
- plan: heroku-postgresql
as: DATABASE
build:
docker:
web: Dockerfile
worker: worker/Dockerfile
release:
image: worker
run:
web: node worker/dist/src/index.js Project Structure of langfuse:
When deploying to heroku I receive the following error:
My first thought was to set
Does anybody have experience with deploying LangFuse to heroku? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
If this is not clear yet, maybe it would be very interesting to work this out and add a deployment guide to heroku. |
Beta Was this translation helpful? Give feedback.
-
Have a look at the docker compose file, you actually do not need to include the worker as it does not have any functionality in Langfuse v2 (current production setup). Also, I'd pull the production images published to docker hub instead of building the dockerfiles, this should simplify the setup a lot. Edit, I just checked and apparently it is not possible to directly deploy docker hub images on heroku but you need to pull them locally and then push them to Heroku. When figuring this out, make sure to consider how you continuously upgrade you langfuse instance. |
Beta Was this translation helpful? Give feedback.
Have a look at the docker compose file, you actually do not need to include the worker as it does not have any functionality in Langfuse v2 (current production setup). Also, I'd pull the production images published to docker hub instead of building the dockerfiles, this should simplify the setup a lot.
Edit, I just checked and apparently it is not possible to directly deploy docker hub images on heroku but you need to pull them locally and then push them to Heroku. When figuring this out, make sure to consider how you continuously upgrade you langfuse instance.