× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Earlier in this thread Aaron said:

Another approach is to 'git clone...' the project to the deployment
directory and then run 'npm init' to install all the dependencies listed in
package.json. The purpose of package.json and package-lock.json is to keep
from having to store the node_modules in git.

Aaron Bartell
IBM i hosting, starting at $157/month. litmis.com/spaces


​npm would be used to download all of the node packages and dependencies
that are in your package.json file​, those would be the files and
directories in your node_modules directory.

Those node packages could be installed globally on production first, so
they would not have to be downloaded for every app. Nowadays 5mb is really
a small amount of disk and managing a global directory presents other
issues with managing multiple versions of the same node module.

So, copying the entire app directory including the node_modules would work
fine, or pushing the app to git then using git clone in the deployment
directory then getting using npm update could be used. Either way you will
end up with the node_modules directory populated.

Brian Randle



On Thu, Feb 8, 2018 at 12:05 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

Should have been:
Is that the only way it's done?


-----Original Message-----
From: Justin Taylor [mailto:JUSTIN@xxxxxxxxxxxxx]
Sent: Wednesday, February 07, 2018 12:16 PM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] Deploy Node?

I can do that.


Is that the only it's done? The reason I ask, is that my 4601 bytes of
source code have a 5.77 MB directory. If a shop has a lot of apps, that
kind of bloat might be a problem.



-----Original Message-----
From: Jack Woehr [mailto:jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, February 06, 2018 12:10 PM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] Deploy Node?

Well, copy your source dir and the node_modules dir with it.

If you depend on system modules, it will be helpful if they all exist on
the target machine :)

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.