This projects provides a starting point for your own spray-routing endeavors on Heroku, it has been forked from spray-template to add Heroku support
To run through sbt, follow the steps as mentioned on spray-template page. To run through foreman, follow these steps:
-
Git-clone this repository.
$ git clone git://github.com/anadimisra/spray-heroku-template.git my-project
-
Change directory into your clone:
$ cd my-project
-
Run the project through foreman
$ foreman start
-
Browse to http://localhost:5000
-
Learn more about hacking spray on http://spray.io
This fork adds following changes
-
A procfile for Heroku
$ web: target/universal/stage/bin/demo-service -Dhttp.port=$PORT
-
An updated application config file to pick up environent variables when running on heroku, view the file at
$ src/main/resources/application.conf
-
Plugins added on top of the fork
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M4") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")
-
Typesafe config library
libraryDependencies += "com.typesafe" % "config" % "1.2.1"