On Jun 29, 2014, at 6:45 AM, Tomás Aparicio wrote: > Some users asked me about a way to create fully self-contained nar archives > that do not requires that node or nar must be already installed in the system > in order to run or extract an application > > I've finally decided to provide support to this feature. From 0.3.0 version > you can create executable binary-like nar archives that do not have external > dependencies. node binary and nar package are now embedded > > $ nar create --executable > > It generates server-0.1.0.nar, for example > > Then you can distribute your archive into a fresh server (without node > installed) and simply run > $ chmod +x server-0.1.0.nar > $ ./server-0.1.0.nar run --args-start='--port 8080' > > $ npm install -g nar > > I hope this will be useful
Presumably this executable is only usable on a single platform/OS/architecture? Is that the same platform/OS/architecture on which it was created? For example, executable archives made on 64-bit Intel Mac OS X can only be run on 64-bit Intel Mac OS X, and executable archives created on 32-bit Intel Gentoo Linux can only be run on 32-bit Intel Gentoo Linux? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/9C296EB6-CC61-4A71-A6EE-A5F34FD5B9A9%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
