-
Notifications
You must be signed in to change notification settings - Fork 29
/
start.sh
executable file
·32 lines (23 loc) · 1.04 KB
/
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
30
31
32
#!/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 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\"}"
#cf push -f articulate/manifest.yml
cf push -f articulate/manifest-with-service.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}"