DEV Community

loading...

Discussion on: Deploy a NestJS API to Heroku from a Nx Workspace

Collapse
sumedhaprithyani profile image
sumedha-prithyani

I got the solution and successfully run my app on heroku,

  1. build application
  2. remove "build" script,
  3. keep start script - "start": "node dist/apps/api/main.js",
  4. Add inside Procfile, web: npm run start
  5. deploy - git push heroku master I could get idea from this solution on - medium.com/@andrew.ray.gilbert/dep...