Jetty and virtual host

View: New views
4 Messages — Rating Filter:   Alert me  

Jetty and virtual host

by Edward Povazan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a Swing app that speaks to a Grails app. In order to not have  
to change my app to use localhost:8080/context when it normally uses  
my url of my server, can I set a virtual host with my grails app  
running in dev mode?
I have found various docs on how to do this with stand alone jetty/
tomcat/etc. but where do I start with the embedded jetty? Is this  
even possible? It would be very cool indeed :)

Thanks
-Ed

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Jetty and virtual host

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Depends what version of Grails you're using. If you're on 0.3.1 you'll
need to go into src/grails/build.xml and hack the run-app:impl target
to configure jetty appropriately

Or with 0.4 snapshots you would need to edit the scripts/RunApp.groovy

Cheers

On 11/23/06, Edward Povazan <epovazan@...> wrote:

> Hello,
>
> I have a Swing app that speaks to a Grails app. In order to not have
> to change my app to use localhost:8080/context when it normally uses
> my url of my server, can I set a virtual host with my grails app
> running in dev mode?
> I have found various docs on how to do this with stand alone jetty/
> tomcat/etc. but where do I start with the embedded jetty? Is this
> even possible? It would be very cool indeed :)
>
> Thanks
> -Ed
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Jetty and virtual host

by Edward Povazan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 23-Nov-06, at 1:07 AM, Graeme Rocher wrote:

> Depends what version of Grails you're using. If you're on 0.3.1 you'll
> need to go into src/grails/build.xml and hack the run-app:impl target
> to configure jetty appropriately
>
> Or with 0.4 snapshots you would need to edit the scripts/RunApp.groovy
>
> Cheers
Thanks, will play with this tomorrow, it should make things much less  
error prone.
Will there ever be a way to override this per project? I have my  
server url, and also some JNLP urls (codebase etc), that I need to  
change before deploying. I wonder what other use cases there are that  
require a full URL?

-Ed

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Jetty and virtual host

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/23/06, Edward Povazan <epovazan@...> wrote:

>
> On 23-Nov-06, at 1:07 AM, Graeme Rocher wrote:
>
> > Depends what version of Grails you're using. If you're on 0.3.1 you'll
> > need to go into src/grails/build.xml and hack the run-app:impl target
> > to configure jetty appropriately
> >
> > Or with 0.4 snapshots you would need to edit the scripts/RunApp.groovy
> >
> > Cheers
> Thanks, will play with this tomorrow, it should make things much less
> error prone.
> Will there ever be a way to override this per project? I have my
> server url, and also some JNLP urls (codebase etc), that I need to
> change before deploying. I wonder what other use cases there are that
> require a full URL?

Yes in 0.4 you can copy the RunApp.groovy script from
$GRAILS_HOME/scripts to $PROJECT_HOME/scripts and then it will be
executed instead of the one in GRAILS_HOME

Graeme
>
> -Ed
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email