Skip to content

Instantly share code, notes, and snippets.

@cvogt
Created October 6, 2016 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvogt/e5f5b471d4b93c6071e3056ca227a9b9 to your computer and use it in GitHub Desktop.
Save cvogt/e5f5b471d4b93c6071e3056ca227a9b9 to your computer and use it in GitHub Desktop.
Scala configuration with an external service
object ProductionConfig{
def main(args: Array[String]): Unit = {
Application.run(
Config(
ConfigService.getString("db.host"),
ConfigService.getInt("db.port")
)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment