fullstack-apollo-express-postgresql-boilerplate icon indicating copy to clipboard operation
fullstack-apollo-express-postgresql-boilerplate copied to clipboard

Heroku does not Install Dev Dependencies

Open rwieruch opened this issue 7 years ago • 2 comments

As workaround I have found: heroku config:set NPM_CONFIG_PRODUCTION=false which makes it possible to install dev dependencies. It's not a long term solution, because usually the server shouldn't be started in production with a babel or nodemon package, but at least it's possible to try it this way.

Ref: https://stackoverflow.com/questions/22954782/install-devdependencies-on-heroku

rwieruch avatar Oct 25 '18 16:10 rwieruch

If anyone is running into this issue, just leave a quick comment here so that I know that this is still relevant.

rwieruch avatar Jan 16 '19 01:01 rwieruch

I'm in the middle of deploying the api to heroku. Do you want a PR product ionizing the api under start and add a dev script you can do npm run dev for development. In development you should use nodemon.

morenoh149 avatar Feb 21 '19 02:02 morenoh149