Closed mal closed 9 years ago
I can appreciate wanting to make startup quicker, but this would mean that if you can't have development dependencies for use in development.
If running hubot in production is trying to install dev dependencies, I think that's a different bug.
@technicalpickles do you mean we should have different ways of launching the bot in dev vs prod? Requiring a manual npm install
when developing seems reasonable (most packages always require a manual npm install
)
@michaelansel I think the main thing would be setting NODE_ENV=production
in production. I did some research on it, and it seems that npm install respects that, and won't install development dependencies.
Another data point re running in development vs production... we have a convention that projects should have a script/server
for launching the server in production. I'd posit that probably that'd be the way to npm install
in development, and that your production deploys should have a way to npm install
at some point (heroku should do it automatically, capistrano can run it after update_code
), etc.
Closing this as it seems like there are better solutions.
Shouldn't need
devDependencies
for this. Should make startup faster as there'll be a lot less packages to version check.