Repository navigation
Expand file tree
/
Copy pathpush.sh
More file actions
executable file
·66 lines (50 loc) · 1.49 KB
/
Copy pathpush.sh
File metadata and controls
executable file
·66 lines (50 loc) · 1.49 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
echo "Loading from .env file..."
source .env
printf '%s\n'
echo "Enter Bluemix App Name:"
read APPNAME
printf '%s\n'
printf 'Pushing Application...'
cf push $APPNAME --no-route true --health-check-type process
printf '%s\n'
printf '%s\n' "Uploading Variables..."
printf '%s\n'
printf '%s\n' "WA_URL"
printf '%s\n' " $WA_URL"
cf set-env $APPNAME WA_URL $WA_URL
printf '%s\n'
printf '%s\n' "WA_SKILLSET"
printf '%s\n' " $WA_SKILLSET"
cf set-env $APPNAME WA_SKILLSET $WA_SKILLSET
printf '%s\n'
printf '%s\n' "WA_API_KEY"
printf '%s\n' " $WA_API_KEY"
cf set-env $APPNAME WA_API_KEY $WA_API_KEY
printf '%s\n'
printf '%s\n' "WA_LANGUAGE"
printf '%s\n' " $WA_LANGUAGE"
cf set-env $APPNAME WA_LANGUAGE $WA_LANGUAGE
printf '%s\n'
printf '%s\n' "WA_DEVICE_TYPE"
printf '%s\n' " $WA_DEVICE_TYPE"
cf set-env $APPNAME WA_DEVICE_TYPE $WA_DEVICE_TYPE
printf '%s\n'
printf '%s\n' "FALLBACK_RESPONSES"
printf '%s\n' " $FALLBACK_RESPONSES"
cf set-env $APPNAME FALLBACK_RESPONSES \"$FALLBACK_RESPONSES\"
printf '%s\n'
printf '%s\n' "MAX_CARD_CHARACTERS"
printf '%s\n' " $MAX_CARD_CHARACTERS"
cf set-env $APPNAME MAX_CARD_CHARACTERS $MAX_CARD_CHARACTERS
printf '%s\n'
printf '%s\n' "SLACK_API_TOKEN"
printf '%s\n' " $SLACK_API_TOKEN"
cf set-env $APPNAME SLACK_API_TOKEN $SLACK_API_TOKEN
printf '%s\n'
printf '%s\n' "BOT_ID"
printf '%s\n' " $BOT_ID"
cf set-env $APPNAME BOT_ID $BOT_ID
printf '%s\n'
printf 'Restaging Application...'
cf push $APPNAME --no-route true --health-check-type process
printf '%s\n'