Skip to content

Commit ea2c3ac

Browse files
authored
Fix npm.txt error in Linux
1 parent b7d393d commit ea2c3ac

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

Diff for: deploy.sh

+11-13
Original file line numberDiff line numberDiff line change
@@ -98,41 +98,39 @@ selectNodeVersion () {
9898
# Deployment
9999
# ----------
100100

101-
echo Handling node.js deployment.
102-
103101
# 1. KuduSync
104102
if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
105103
"$KUDU_SYNC_CMD" -v 50 -f "$DEPLOYMENT_SOURCE" -t "$DEPLOYMENT_TARGET" -n "$NEXT_MANIFEST_PATH" -p "$PREVIOUS_MANIFEST_PATH" -i ".git;.hg;.deployment;deploy.sh"
106104
exitWithMessageOnError "Kudu Sync failed"
107105
fi
108106

109-
# 2. Select node version
110-
selectNodeVersion
107+
# 2. Install Composer modules
108+
if [ -e "$DEPLOYMENT_TARGET/composer.json" ]; then
109+
echo Running composer install
110+
cd "$DEPLOYMENT_TARGET"
111+
eval php composer.phar install
112+
exitWithMessageOnError "composer failed"
113+
cd - > /dev/null
114+
fi
111115

112116
# 3. Install NPM packages
113117
if [ -e "$DEPLOYMENT_TARGET/package.json" ]; then
118+
echo Running npm install
114119
cd "$DEPLOYMENT_TARGET"
115-
eval $NPM_CMD install --production
120+
eval npm install --production
116121
exitWithMessageOnError "npm failed"
117122
cd - > /dev/null
118123
fi
119124

120125
# 4. Install Bower modules
121126
if [ -e "$DEPLOYMENT_TARGET/bower.json" ]; then
127+
echo Running bower install
122128
cd "$DEPLOYMENT_TARGET"
123129
eval ./node_modules/.bin/bower install
124130
exitWithMessageOnError "bower failed"
125131
cd - > /dev/null
126132
fi
127133

128-
# 5. Install Composer modules
129-
if [ -e "$DEPLOYMENT_TARGET/composer.json" ]; then
130-
cd "$DEPLOYMENT_TARGET"
131-
eval php composer.phar install
132-
exitWithMessageOnError "composer failed"
133-
cd - > /dev/null
134-
fi
135-
136134
##################################################################################################################################
137135

138136
# Post deployment stub

0 commit comments

Comments
 (0)