Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Update and fix the PWS deploy script
Browse files Browse the repository at this point in the history
- The script can be run from anywhere (no relative paths)
- The "package" directory within assets/web does not exist in the
  release zip, so we removed this

Signed-off-by: Jieke Pan <jpan@mobiquityinc.com>
  • Loading branch information
Kehrlann authored and panjieke committed Jul 18, 2018
1 parent 3d968d7 commit 4c86825
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deployment/pws/deploy.sh
Expand Up @@ -2,8 +2,11 @@

set -e

cf push -f config/manifest-api.yml -p api
# The directory in which this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

cf push -f config/manifest-api.yml -p "$SCRIPT_DIR"/assets/api
cf run-task {{api-app-name}} 'ADMIN_EMAIL=email@example.com ADMIN_PASSWORD=password rake admin:create_user'

cp config/config.js package
cf push -f config/manifest-web.yml -p web/package
cp config/config.js "$SCRIPT_DIR"/assets/web
cf push -f config/manifest-web.yml -p "$SCRIPT_DIR"/assets/web

0 comments on commit 4c86825

Please sign in to comment.