Chris just make sure that when you deploy, your git client on your server has 
access to your repo. We're running our project on hook.io and have one repo per 
hook to make it easy to isolate the code of each domain, so that model works 
fine for us. If you have a bunch of modules that doesn't need to be recompiled, 
I would actually recommend committing your node_modules folder instead 
(especially so if you have a lot of "non-popular-enough" modules) into your own 
repo and deploy without using "npm install". This is because it's possible to 
force push updates to npm so your server env have a chance of getting an 
entirely different set of code even on the same version, and the fact that not 
every npm module follows the semver semantics for version numbering.

For us, fortunately most of our own modules are developed in-house, so we have 
very little dependencies to other modules (compared to my own personal 
project), so the private repo method works well for us. 

Thanks,
Ruben Tan


On Friday, February 10, 2012 at 6:41 AM, Chris Scribner wrote:

> Interesting discussion about the move from npm to checking in modules.
> At my workplace we went the opposite direction :) We aren't using a
> private npm repository though... I don't think that would be worth it
> for our case.
> 
> This particular question is about an open source module, though. I'm
> going to play with the suggestion from Ruben... but it looks like it
> adds a dependency on git. Which is probably ok, but conceivably
> someone could be using another source control system and not have it
> installed.
> 
> chris
> 
> On Feb 9, 1:54 pm, Marco Rogers <[email protected] (http://gmail.com)> 
> wrote:
> > If you're building an app, check in your dependencies. Take npm out of the
> > equation (mostly) :)
> > 
> > http://eng.yammer.com/blog/2012/1/4/managing-nodejs-dependencies-and-...
> > 
> > :Marco
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected])
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[email protected])
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> 
> 


-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to