Skip to content

Instantly share code, notes, and snippets.

@jaohaohsuan
Last active March 2, 2017 02:43
Show Gist options
  • Select an option

  • Save jaohaohsuan/031bd1d3373a87364fbc1566e4a52244 to your computer and use it in GitHub Desktop.

Select an option

Save jaohaohsuan/031bd1d3373a87364fbc1566e4a52244 to your computer and use it in GitHub Desktop.
sbt notes

sbt notes

package scala project
如何從sbt傳入參數到configuration?
akka {
  remote {
    netty.tcp {
      hostname = "127.0.0.1"
      hostname = ${?HOST}
      prot = ${PORT}
    }
  }
}

前綴D變數名

sbt -DPORT=2551 -DHOST=192.168.2.181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment