Skip to content

Commit

Permalink
Merge pull request #131 from ncats/jb_rxn_plumbing
Browse files Browse the repository at this point in the history
minor change to trigger deployment of RaMP-DB for API
  • Loading branch information
tsheils authored Jan 31, 2024
2 parents 88abcd7 + 08a2f8e commit c2dfe88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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)

0 comments on commit c2dfe88

Please sign in to comment.