-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdeploy.R
88 lines (75 loc) · 1.59 KB
/
deploy.R
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# script for deploying these example apps to Polished Hosting
library(polished)
# read in your Polished API key
my_config <- config::get(file = "config.yml")
polished:::set_api_url(
host_api_url = "https://hosting-api-amai4lhqja-ue.a.run.app/v1"
)
# deploy the 01_minimal example app
app_1 <- "01_minimal_example"
deploy_app(
app_dir = app_1,
api_key = my_config$api_key,
app_name = app_1
)
app_2 <- "02_custom_sign_in"
deploy_app(
app_dir = app_2,
api_key = my_config$api_key,
app_name = app_2
)
app_3 <- "03_no_invite_required"
polished::deploy_app(
app_dir = app_3,
api_key = my_config$api_key,
app_name = app_3
)
app_4 <- "04_apps_dashboard"
polished::deploy_app(
app_dir = app_4,
api_key = my_config$api_key,
app_name = app_4
)
app_4a <- "04_basic_insurer_dashboard"
polished::deploy_app(
app_dir = app_4a,
api_key = my_config$api_key,
app_name = app_4a
)
app_4b <- "04_interest_rate_walk"
polished::deploy_app(
app_dir = app_4b,
api_key = my_config$api_key,
app_name = app_4b
)
app_5 <- "05_rmarkdown"
deploy_app(
app_dir = app_5,
api_key = my_config$api_key,
app_name = app_5
)
app_6 <- "06_social_sign_in"
deploy_app(
app_dir = app_6,
api_key = my_config$api_key,
app_name = app_6
)
app_7 <- "07_alt_sign_in_ui"
deploy_app(
app_dir = app_7,
api_key = my_config$api_key,
app_name = app_7
)
app_8 <- "08_golem_app"
polished::deploy_app(
app_dir = app_8,
api_key = my_config$api_key,
app_name = app_8,
golem_package_name = "polishedGolemApp"
)
app_10 <- "10_2fa"
deploy_app(
app_dir = app_10,
api_key = my_config$api_key,
app_name = app_10
)