Facing a lot of problems deploying to heroku. First I have to add a Profile to instruct it to run
npm run bs. Then heroku tells me that it needs a devDependency, rimraf. Have you guys battle tested this thing for deployment?
Write your answer…
Have you checked out the following article:
Hashnode is building a friendly and inclusive dev community. Come jump on the bandwagon!
💬 A beginner friendly place
🧠 Stay in the loop and grow your knowledge
🍕 >500K developers share programming wisdom here
❤️ Support the growing dev community!
Register ( 500k+ developers strong 👊)
Hi, shawn! By default, Heroku has the production flag set to true on NodeJS projects, which results in the installation of the production dependencies only. If you would also like to install
devDependencies, you can either set the corresponding production flag to false...
$ heroku config:set NPM_CONFIG_PRODUCTION=false
...or optionally, move all of your npm
dependencies; as is recommended in the story which Sandeep shared in his answer. Please do give it a complete read for a quick checklist of things to do, to get the MERN boilerplate deployed to Heroku.