Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

NodeJS Cartridge Should Only Pull Production Modules #5628

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cartridges/openshift-origin-cartridge-nodejs/bin/control
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function build() {

nodejs_context /bin/bash
if [ -f "${OPENSHIFT_REPO_DIR}"/package.json ]; then
(cd "${OPENSHIFT_REPO_DIR}"; nodejs_context "npm install -d")
(cd "${OPENSHIFT_REPO_DIR}"; nodejs_context "npm install -d --production")
fi
}

Expand Down