-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
26 lines (22 loc) · 910 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# /bin/sh
##################################################################################################################################
# Deployment
# ----------
echo PHP deployment
# 1. KuduSync
if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
"$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"
exitWithMessageOnError "Kudu Sync failed"
fi
# 3. Initialize Composer Config
initializeDeploymentConfig
# 4. Use composer
echo "$DEPLOYMENT_TARGET"
if [ -e "$DEPLOYMENT_TARGET/composer.json" ]; then
echo "Found composer.json"
pushd "$DEPLOYMENT_TARGET"
php composer.phar install "$COMPOSER_ARGS"
exitWithMessageOnError "Composer install failed"
popd
fi
##################################################################################################################################