Skip to content

Instantly share code, notes, and snippets.

@cvogt
Last active October 9, 2016 17:15
Show Gist options
  • Select an option

  • Save cvogt/5f8c6aaf7ec8c1209da9e324a38ef9d6 to your computer and use it in GitHub Desktop.

Select an option

Save cvogt/5f8c6aaf7ec8c1209da9e324a38ef9d6 to your computer and use it in GitHub Desktop.

Revisions

  1. cvogt revised this gist Oct 9, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions DynamicConfig.scala
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@ object DynamicConfig{
    def main(args: Array[String]): Unit = {
    Application.run(
    Config(
    Option(System.getProperty("db.host")).get,
    Option(System.getProperty("db.port")).get.toInt
    sys.props.get("db.host").get,
    10000
    )
    }
    }
  2. cvogt created this gist Oct 9, 2016.
    9 changes: 9 additions & 0 deletions DynamicConfig.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    object DynamicConfig{
    def main(args: Array[String]): Unit = {
    Application.run(
    Config(
    Option(System.getProperty("db.host")).get,
    Option(System.getProperty("db.port")).get.toInt
    )
    }
    }