the-road-to-graphql / fullstack-apollo-express-postgresql-boilerplate

💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
https://roadtoreact.com
MIT License
1.2k stars 265 forks source link

Heroku does not Install Dev Dependencies #29

Open rwieruch opened 5 years ago

rwieruch commented 5 years ago

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 commented 5 years ago

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

morenoh149 commented 5 years ago

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.