re: How do you get Node.js apps to production? VIEW POST


I have a discord bot that sits on Heroku.

  1. GitHub auto deploys to Heroku.
  2. Discord.js
  3. On my first deploy, took me over an hour to figure out that I need to disable NPM_CONFIG_PRODUCTION because Heroku was ignoring some essential dependencies. Very very counter-intuitive.

Heroku is slick, I've put so many apps on there, but have always struggled working out where to run unit tests (do I run it as part of the deployment or is that too late?). Are you deploying with the built-in hooks from Heroku or using a GitHub Action?


Built in hook. I don't have a test suite for this bot so i can't relate on that note πŸ˜†

Haha nothing like a yolo to production 🀣

I always wonder whether I still use Heroku because it’s still the best experience or because it’s just what I know best.

Little of column A, little of column B? πŸ˜‰

code of conduct - report abuse