Alex Rivera | Logout

Need a better "getting started" guide for Lift

Asked 2012-02-22T10:27:59.097
11

I have used Scala for about a year and now want to get into Lift. Following the official site, I got the guide at http://simply.liftweb.net/index-Chapter-2.html#toc-Chapter-2

However, the example does not work. Here is the error I get.

C:\Lift\hello>sbt update ~jetty-run

C:\Lift\hello>set SCRIPT_DIR=C:\scala\bin\

C:\Lift\hello>java -Xmx512M -jar "C:\scala\bin\sbt-launch.jar" update ~jetty-run
[info] Set current project to default-7944be (in build file:/C:/Lift/hello/)
[success] Total time: 0 s, completed 22 Feb, 2012 3:41:06 PM
[error] Not a valid command: jetty-run
[error] Not a valid project ID: jetty-run
[error] Not a valid configuration: jetty-run
[error] Not a valid key: jetty-run (similar: run)
[error] ~jetty-run
[error]           ^

I have not used sbt before and prefer not to get sidetracked by having to learn sbt, maven or other stuff. I essentially want a "hello" world application (in this case, the chat application) to start up and running before I do any more digging into Lift.

It is unfortunate that the very first example in the official "getting started" guide is broken. Any ideas what the errors are. I tried the method suggested at http://groups.google.com/group/simple-build-tool/browse_thread/thread/60635edfadbcd816 without any luck

Edit
Report

1 Answer

4

It's and old question, but I haven't found that solution anywhere yet:

Seems like in lift 2.5 you should do container:start instead of ~jetty-run, so:

./sbt[enter]
update[enter]
container:start[enter]

My chat app was on http://0.0.0.0:8080

answered 2013-07-31T15:09:02.033

Your Answer