From 2443d3d91bb68eecd3eaf011562918871940d86f Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 20 Mar 2013 21:38:23 -0700 Subject: [PATCH] updated readme --- samples/server-generator/scalatra/README.md | 7 ++++--- samples/server-generator/scalatra/templates/build.sbt | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/samples/server-generator/scalatra/README.md b/samples/server-generator/scalatra/README.md index fb53f59aed6..0b7ba422982 100644 --- a/samples/server-generator/scalatra/README.md +++ b/samples/server-generator/scalatra/README.md @@ -50,13 +50,14 @@ $ find -type f To run the server, cd to the `samples/server-generator/scalatra/output` folder and run: ``` -sbt run +sbt + +> container:start ``` -You can now load the swagger-ui against `http://localhost:8002/api/resources.json`. Of course this isn't a fully +You can now load the swagger-ui against `http://localhost:8080/resources.json`. Of course this isn't a fully runnable server! You have to add the logic in the apis/*.scala files. But that's the easy part. - ### Making it your own Running the sample is easy, but how about making your own server? Easy! Just modify the `samples/server-generator/scalatra/ScalatraServerGenerator.scala` file. diff --git a/samples/server-generator/scalatra/templates/build.sbt b/samples/server-generator/scalatra/templates/build.sbt index b9175b22c98..4c3a7ad5d83 100644 --- a/samples/server-generator/scalatra/templates/build.sbt +++ b/samples/server-generator/scalatra/templates/build.sbt @@ -3,13 +3,13 @@ import com.github.siasia.PluginKeys._ assemblySettings -organization := "org.eatbacon" +organization := "com.wordnik" seq(webSettings :_*) mainClass in assembly := Some("JettyMain") -name := "sfth" +name := "scalatra-sample" version := "0.1.0-SNAPSHOT"