Files
RProjects/R/common/environment.R
T
2026-06-11 14:22:04 +02:00

42 lines
1.0 KiB
R

environnement <- "prod"
#environnement <- "recette"
#environnement <- "local"
if(environnement == "prod"){
server_path <- "https://tomcat.herdbookcharolais.com/HbcSchedulerAndServices-2.0-SNAPSHOT/"
rep_imp <- "/home/hbc/R/"
infos_con <- list(
drv = RPostgres::Postgres(),
dbname = "hbc",
host = "10.1.225.66",
user = "client_prod",
password = "vYl9Z^@k9rGTTOG~T1rR"
)
} else if(environnement == "recette"){
server_path <- "https://recette.tomcat.racecharolaise.fr/HbcSchedulerAndServices-2.0-SNAPSHOT/"
rep_imp <- "/home/lea/Documents/ecow/"
infos_con <- list(
drv = RPostgres::Postgres(),
dbname = "hbc-R7",
host = "10.1.234.197",
user = "client_recette",
password = "3J3d7nbZ7E4neP"
)
} else {
server_path <- "http://localhost:8080/HbcSchedulerAndServices/"
rep_imp <- "/home/lea/Documents/ecow/"
infos_con <- list(
drv = RPostgres::Postgres(),
dbname = "hbc-R7",
host = "10.1.234.197",
user = "client_recette",
password = "3J3d7nbZ7E4neP"
)
}