-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.sh
executable file
·21 lines (16 loc) · 1.13 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -ex
# Set the manifest file
MANIFEST_FILE=./manifest.yml
# Copy the environment helper script
cp -a ./infrastructure/env/. ./env/
# Set the amount of time in minutes that the CLI will wait for all instances to start.
# Because of the rolling deployment strategy, this should be set to at least the amount of
# time each app takes to start multiplied by the number of instances.
#
# See https://docs.cloudfoundry.org/devguide/deploy-apps/large-app-deploy.html
export CF_STARTUP_TIMEOUT=15
# Deploy the app
cf7 push $APP_NAME -f $MANIFEST_FILE --app-start-timeout 180 --var app-name=$APP_NAME --var psd-host=$DOMAIN --var psd-host-support=$DOMAIN_SUPPORT --var psd-host-report=$DOMAIN_REPORT --var web-disk-quota=$WEB_DISK_QUOTA --var worker-disk-quota=$WORKER_DISK_QUOTA --var web-memory=$WEB_MEMORY --var worker-memory=$WORKER_MEMORY --var web-instances=$WEB_INSTANCES --var worker-instances=$WORKER_INSTANCES --var web-max-threads=$WEB_MAX_THREADS --var worker-max-threads=$WORKER_MAX_THREADS --var sentry-service-name=$SENTRY_SERVICE_NAME --strategy rolling
# Remove the copied infrastructure env files to clean up
rm -R env/