From 08a2f8e740988aca6d03dcb425e794acb2008152 Mon Sep 17 00:00:00 2001 From: johnbraisted Date: Tue, 30 Jan 2024 17:31:20 -0500 Subject: [PATCH] minor mod to runRamp to trigger RaMP-DB package deployment --- apps/ramp-server/db.R | 4 ++++ apps/ramp-server/runRamp.R | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/ramp-server/db.R b/apps/ramp-server/db.R index 91a7073..13decb8 100644 --- a/apps/ramp-server/db.R +++ b/apps/ramp-server/db.R @@ -9,6 +9,10 @@ username <- config$db_username conpass <- config$db_password port <- config$db_port +print("in db.R... config host:") +print(host) +print(dbname) + #pkg.globals <- setConnectionToRaMP(dbname=dbname,username=username,conpass=conpass,host = host) # this call is used specifically for connection to MySQL/MariaDB databases. diff --git a/apps/ramp-server/runRamp.R b/apps/ramp-server/runRamp.R index 090e94c..1bdf0d4 100644 --- a/apps/ramp-server/runRamp.R +++ b/apps/ramp-server/runRamp.R @@ -1,4 +1,8 @@ + ramp_api <- plumber::plumb("plumber.R") + +# sets up mysql connection source("db.R") -ramp_api$run(host = "127.0.0.1", port = 5762) +# starts api +ramp_api$run(host = "127.0.0.1", port = 5762)