I have found it works great for a step in deployment and sharing of apps as it 
pulls in all the dependent modules, and then my install.js is run to setup the 
world.

On Jan 7, 2013, at 11:22 AM, Forrest L Norvell <[email protected]> wrote:

> Not speaking for Isaac here, but npm doesn't seem like a really great tool 
> for deployment. I guess when I've handled this in the past, the way I've done 
> it is to make my apps self-bootstrapping or done it through scripts outside 
> the deployment tool.
> 
> But I do apologize for not noticing the distinction between app deployment 
> and module publishing.
> 
> F
> 
> On Mon, Jan 7, 2013 at 11:14 AM, Jacob Groundwater <[email protected]> wrote:
> 
> Transpiling and minification are better handled by a prepublish script 
> anyway: https://npmjs.org/doc/scripts.html That way, the module doesn't need 
> to depend on CoffeeScript just to install and deployment will happen that 
> much faster.
> 
> Unless I am mistaken, `prepublish` is only called when doing `npm publish`, 
> which you would never do for a web application.
> 
> Most PaaS providers accept git bundles of your project, and then deploy from 
> there with `npm install`. The `prestart` key also is not a good fit if you 
> are using a Procfile.
> 
> Perhaps `scripts.install` needs to be replaced with a `scripts.predeploy` or 
> something specific for preparing an application for production.
> 
> -- 
> 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
> 
> 
> -- 
> 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

-- 
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