Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

minor change to trigger deployment of RaMP-DB for API #131

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/ramp-server/db.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion apps/ramp-server/runRamp.R
Original file line number Diff line number Diff line change
@@ -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)
Loading