Skip to content
The spray-can simple-http-server example from Spray, modified to run on Cloud Foundry.
Scala
Find file
Failed to load latest commit information.
config Add Procfile Dec 31, 2012
project Add sbt eclipse plugin Jun 18, 2012
src/main Remove unecessary println May 17, 2012
.gitignore Add resources to Eclipse sources Aug 22, 2012
README.md
build.sbt Add Procfile Jan 1, 2013
manifest.yml

README.md

spray-can-server

The spray-can simple-http-server example from Spray. Spray is a suite of scala libraries for building and consuming RESTful web services on top of Akka.

Deploying to Cloud Foundry

To deploy the application to Cloud Foundry, simply build the dist and push it to Cloud Foundry using the provided manifest.yml file.

$ sbt clean compile package-dist
$ cf push

The host name field in the manifest.yml include some random characters to make sure the URL for the app is unique in the Cloud Foundry environment. The output of the cf app command shows the URL that was assigned. Using the provided URL in the urls field displayed, you can browse to the running application.

Something went wrong with that request. Please try again.