-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make npm install script cross-platform (starting with Linux and OS X) #25
Comments
ncp can help with moving files.
|
jmakeig
added a commit
that referenced
this issue
Jan 10, 2017
Uses $(uname) to detect the OS and set the location of the MarkLogic install accordingly. This is related to #25. mltap should also be able to be installed in a Modules database in the future.
jmakeig
added a commit
that referenced
this issue
Jan 30, 2017
Uses $(uname) to detect the OS and set the location of the MarkLogic install accordingly. This is related to #25. mltap should also be able to be installed in a Modules database in the future. Fixes path substitution and quotes.
jmakeig
added a commit
that referenced
this issue
Jan 30, 2017
Uses $(uname) to detect the OS and set the location of the MarkLogic install accordingly. This is related to #25. mltap should also be able to be installed in a Modules database in the future. Fixes path substitution and quotes.
The best practice for production is to load (your own) modules into a modules database. For development, however, it’s more convenient and better supports SCM workflows to run modules directly off the filesystem. An installer should be able to support both scenarios. |
Checkout https://www.npmjs.com/package/walk for recursive, async file walker. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The npm
install
script runs after annpm install mltap
. It needs to do two things:config
)Modules
directory of the MarkLogic installation (deploy
)File system deployment requires sudo on Linux (and probably admin on Windows) because MarkLogic is installed into
/opt/MarkLogic
. On OS X, MarkLogic is installed in the user’s home directory and thus doesn’t require sudo.Note that on Travis
sudo npm …
won’t work because npm isn't in theroot
user’sPATH
, because Travis is using nvm.The text was updated successfully, but these errors were encountered: