forked from brightzheng100/pcf101-articulate-attendee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·29 lines (21 loc) · 842 Bytes
/
start.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
27
28
29
#!/usr/bin/env bash
set -e
# Domain
DOMAIN="cfapps.io"
if [ ! -z "$1" ]; then
DOMAIN=$1;
fi
echo "=====> Using domain: ${DOMAIN}"
echo "=====> ./mvnw package"
./mvnw package
echo "=====> cf push -f attendee/manifest.yml"
cf push -f attendee/manifest.yml
echo "=====> cf push -f articulate/manifest.yml"
cf push -f articulate/manifest.yml
echo "=====> cf cups pcf101-demo-attendee-service -p uri https://pcf101-demo-attendee.${DOMAIN}/attendees"
cf cups pcf101-demo-attendee-service -p "{\"uri\":\"https://pcf101-demo-attendee.${DOMAIN}/attendees\"}"
echo "=====> cf cf bind-service pcf101-demo-articulate pcf101-demo-attendee-service"
cf bind-service pcf101-demo-articulate pcf101-demo-attendee-service
echo "=====> cf restage pcf101-demo-articulate"
cf restage pcf101-demo-articulate
open "https://pcf101-demo-articulate.${DOMAIN}"