#Deploying to heroku

1 messages · Page 1 of 1 (latest)

torn glade
#

Hello,

I am a bit confused when it comes to deploying an application that uses trigger.dev. I am building a remix app that I am deploying to heroku. This might be a stupid question but in development, in order to use trigger.dev I need to run npx @trigger.dev/cli@latest dev. So I am assuming that this command needs to be run on a prod server as well. in my Procfile for heroku I have the following

release: npx prisma migrate deploy
web: npm run start
worker: npx @trigger.dev/cli@latest dev

but I keep getting this error

Your TRIGGER_API_KEY isn't a secret dev API key, you've entered a prod server key

Am I not supposed to run the npx command on heroku?

Any help would be really appreciated here

Thank you

olive peak
#

Hey,

That's version 2 (I can tell because it's @trigger.dev/cli) which doesn't work well with long-running servers, like the kind you get on Heroku. It can work but it's definitely not ideal depending on your exact use case, that's why we have warning messages during the onboarding and in the docs about serverless.

Have you written much code? I can invite you to v3 and give you advice on how to translate your code over.

torn glade
#

That'd be amazing! I requested access to v3 but haven't received anything yet. Thank you!