deltanovember
deltanovember

Reputation: 44081

How do I get the basic chat Scala/Lift application to run?

I'm following the tutorial here

http://simply.liftweb.net/index-Chapter-2.html

So far I have created a directory, and pasted the source code into text files. I then copied sbt.bat and sbt-launcher.jar into the directory. Upon running

sbt update ~jetty-run

I get the following error message

"No action named 'jetty-run' exists"

Upvotes: 2

Views: 391

Answers (2)

4e6
4e6

Reputation: 10776

Sounds like you haven't jetty dependency in your config file or it wasn't successfully fetched.

Steps to launch chat app:

Clone sbt project from github
$git clone git://github.com/dpp/simply_lift.git

Launch sbt
$cd simply_lift/chat
$./sbt
Scala library will be downloaded.

From sbt console
> update
This will fetch all dependencies from sbt config file (project/build/LiftProject.scala). Make sure that all dependencies were downloaded successfully.

And finally
> jetty-run

Upvotes: 1

Nexus6
Nexus6

Reputation: 1486

Never having run Lift, I'm uniquely unqualified to answer this question. However, I am an SBT user, so.... Try running these two commands from the sbt command line. First get into sbt:
sbt <enter>
then type:
update<enter>
that will likely take a very long time to complete. When it finishes, type
~jetty-run<enter>
which should build any bits of Lift that need it and launch Jetty with Lift deployed. If all goes well, commence chatting.

Upvotes: 1

Related Questions