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

时间秒杀一切 提交于 2019-12-23 02:38:43

问题


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

override val jettyPort = 8081

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


回答1:


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



来源:https://stackoverflow.com/questions/4722356/in-which-file-do-i-need-to-add-an-override-for-the-jetty-port-when-running-a-lif

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!