Skip to content

anadimisra/spray-heroku-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spray Heroku Template Project

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:

  1. Git-clone this repository.

     $ git clone git://github.com/anadimisra/spray-heroku-template.git my-project
    
  2. Change directory into your clone:

     $ cd my-project
    
  3. Run the project through foreman

     $ foreman start
    
  4. Browse to http://localhost:5000

  5. Learn more about hacking spray on http://spray.io

This fork adds following changes

  1. A procfile for Heroku

     $ web: target/universal/stage/bin/demo-service -Dhttp.port=$PORT
    
  2. An updated application config file to pick up environent variables when running on heroku, view the file at

     $ src/main/resources/application.conf
    
  3. 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")
    
  4. Typesafe config library

     libraryDependencies += "com.typesafe" % "config" % "1.2.1"
    

About

Template project to get started with Spray on Heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages