So the equivalent of an build file - fine I guess but I would hope we
wouldn't have to run a build and redeploy just to change the port.
I'll assume that that is not the case.
On Oct 21, 12:57 pm, TylerWeir <tyler.w...@gmail.com> wrote:
> It's in the SBT config, which is defined in a scala file. So I guess
> you could say it's in code, but certainly not Lift or Lift app code.
>
> On Oct 21, 2:49 pm, Andy Czerwonka <andy.czerwo...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 'port' is in code?
>
> > On Oct 20, 6:11 pm, TylerWeir <tyler.w...@gmail.com> wrote:
>
> > > In your project/build/FooProject.scala add:
>
> > > override val jettyPort = 8081
>
> > > On Oct 20, 6:37 pm, Arie <arie.lake...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > Got the same question as this posthttp://groups.google.com/group/liftweb/browse_thread/thread/b5324a711...
>
> > > > namely: "Does anybody know how I can change the default port 8080? "
>
> > > > But I'd like to know how to do it with SBT.
>
> > > > Thank you
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
> On Thu, Oct 21, 2010 at 12:06 PM, Andy Czerwonka <andy.cz...@gmail.com> wrote:
>
> So the equivalent of an build file - fine I guess but I would hope we
> wouldn't have to run a build and redeploy just to change the port.
>
> This is how you change the port when running your development instance
> in sbt. When you are in production, you build a WAR file and deploy
> it to your container of choice. You manage the port on the container,
> not in the WAR file.
And if you're still using Maven instead of SBT to manage things in dev, you can
find the <plugin> block for jetty, and insert a <connectors> block as follows:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.24</version>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>5</scanIntervalSeconds>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>9080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>
(I'll get around to updating my old projects to SBT. Really. But until
then...)
--
Jim Wise
jw...@draga.com