Created
October 6, 2016 19:32
-
-
Save cvogt/e5f5b471d4b93c6071e3056ca227a9b9 to your computer and use it in GitHub Desktop.
Scala configuration with an external service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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