- 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 projectis defined (project/ScalaCollectorBuild.scala)- this provides the
sbt stagetask that heroku runs to compile - be careful to skip every other line in
plugins.sbt
- this provides the
- add
java.runtime.version=1.7to system.properties in repo root - add
worker: ./target/universal/stage/bin/name-of-my-app --config myconf.conftoProcfilein repo root, check name of executable aftersbt compile stage
- don't use
shhere, heroku runs Ubuntu with dash not bash