- obfuscate access keys in conf as: ${AWS_ACCESS_KEY_ID}
- if you get a error like
adf
, make sureresolve()
the config file like:ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
- if you get a error like
- add
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.8.0-M1")
to project/plugins.sbt and.settings(com.typesafe.sbt.SbtNativePackager.packageArchetype.java_application: _*)
to whereverval project
is defined (project/ScalaCollectorBuild.scala)- this provides the
sbt stage
task that heroku runs to compile - be careful to skip every other line in
plugins.sbt
- this provides the
- add
java.runtime.version=1.7
to system.properties in repo root - add
worker: ./target/universal/stage/bin/name-of-my-app --config myconf.conf
toProcfile
in repo root, check name of executable aftersbt compile stage
- don't use
sh
here, heroku runs Ubuntu with dash not bash