DEV Community

Discussion on: How do you get Node.js apps to production?

Collapse
 
maestromac profile image
Mac Siri

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.
Collapse
 
aaronpowell profile image
Aaron Powell

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?

Collapse
 
maestromac profile image
Mac Siri

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

Thread Thread
 
aaronpowell profile image
Aaron Powell

Haha nothing like a yolo to production 🤣

Thread Thread
 
ben profile image
Ben Halpern

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

Thread Thread
 
aaronpowell profile image
Aaron Powell

Little of column A, little of column B? 😉