Skip to content

Commit 92990ad

Browse files
committed
hard coded connection info instead of using envt vars
1 parent e3f40cd commit 92990ad

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

experiment-trait-data-visualizer/cache-refresh.R

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ library(lubridate)
44
options(scipen=999)
55

66
# set up remote connection to BETYdb
7-
bety_src <- src_postgres(
8-
dbname = Sys.getenv('bety_dbname'),
9-
password = Sys.getenv('bety_password'),
10-
host = Sys.getenv('bety_host'),
11-
port = Sys.getenv('bety_port'),
12-
user = Sys.getenv('bety_user')
13-
)
7+
# bety_src <- src_postgres(
8+
# dbname = Sys.getenv('bety_dbname'),
9+
# password = Sys.getenv('bety_password'),
10+
# host = Sys.getenv('bety_host'),
11+
# port = Sys.getenv('bety_port'),
12+
# user = Sys.getenv('bety_user')
13+
# )
14+
bety_src <- src_postgres(dbname = "bety",
15+
password = 'bety',
16+
host = 'terra-bety.default',
17+
user = 'bety',
18+
port = 5432)
1419

1520
# get all relevant data from BETYdb for a given season, write to cache file
1621
get_data_for_season <- function(season) {

0 commit comments

Comments
 (0)