开发者

In which file do I need to add an override for the jetty port when running a lift webapp in dev mode from sbt?

This page: http://www.assembla.com/wiki/show/liftweb/Using_SBT describes how to override the jetty port for lift webapps:

overr开发者_StackOverflowide val jettyPort = 8081

but doesn't state the file that this override should be defined in.


In the project/build/ProjectNameProject.scala file:

import sbt._

class ProjectNameProject(info: ProjectInfo) extends DefaultWebProject(info) {
    // other configuration
    override val jettyPort = 8081
}

The jettyPort is defined in the DefaultProject.scala file of SBT.

See here: http://www.google.com/codesearch/p?hl=en#_gvea9IT4iU/trunk/src/main/scala/sbt/DefaultProject.scala&q=%22jettyPort%22&sa=N&cd=1&ct=rc

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜