Skip to content

Instantly share code, notes, and snippets.

@davegurnell
Created November 12, 2014 16:29
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 davegurnell/a8462919b95b0394d604 to your computer and use it in GitHub Desktop.
Save davegurnell/a8462919b95b0394d604 to your computer and use it in GitHub Desktop.
Sample build.sbt to get Play to load different configs for test and dev
lazy val chat = project.in(file(".")).enablePlugins(PlayScala)
scalaVersion in chat := "2.11.4"
libraryDependencies in chat ++= Seq(
jdbc,
anorm,
"org.postgresql" % "postgresql" % "9.3-1101-jdbc4",
"org.webjars" % "bootstrap" % "3.0.2",
"org.scalatestplus" %% "play" % "1.2.0" % "test"
)
javaOptions := Seq("-Dconfig.file=conf/application.conf")
javaOptions in Test := Seq("-Dconfig.file=conf/test.conf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment