Monday, 10 April 2017

How do I deploy my Typescript Node.js app to Heroku?

When testing locally I was previously running:

"build-live": "nodemon --exec ./node_modules/.bin/ts-node -r dotenv/config -- ./index.ts"

I then figured my Procfile should be something like:

web: ./node_modules/.bin/ts-node -- ./index.ts

But it says module 'typescript' not found, even when it is in package.json. I read in a few places that ts-node is not the way to go to deploy to Heroku, so I am not sure what to do.



via booboothefool

No comments:

Post a Comment