Skip to content

Database path in dev and production #708

Answered by ColinFay
pythiantech asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @pythiantech,

Side note before answering: thanks for the positive feedback 🤘. That always means a lot to us.

Side note two: as of golem v0.3.1, you can use the GOLEM_CONFIG_ACTIVE env var if you really want to focus on using the golem-config file, without conflicting with potential {config} elements (notably on RStudio Connect).

  1. Yes, this is the correct way to do, you can find an example of this behavior here :

As you can see, the behavior is the following one:

# default 
get_golem_config(
  "MONGODBURL"
)
[1] "localhost"

# Changing the config ENV_VAR
Sys.setenv("GOLEM_CONFIG_ACTIVE" = "production")
get_golem_…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pythiantech
Comment options

Answer selected by pythiantech
Comment options

You must be logged in to vote
1 reply
@emilyriederer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants