[katello-devel] development mode - running server with https using webrick

Adam Price adprice at redhat.com
Wed Apr 17 16:22:48 UTC 2013



----- Original Message -----
> From: "Brad Buckingham" <bbuckingham at redhat.com>
> To: katello-devel at redhat.com
> Sent: Wednesday, April 17, 2013 11:25:33 AM
> Subject: Re: [katello-devel] development mode - running server with https using webrick
> 
> On 04/15/2013 05:20 AM, Petr Chalupa wrote:
> >
> >
> > On 12.04.13 17:20, Brad Buckingham wrote:
> >> As a developer, I typicallly run my server using webrick with
> >> 'use_ssl=true' in katello.yml.  In this configuration, the UI is
> >> accessible using : https://mykatelloserver.com:3000/katello . The main
> >> reason that I use this configuration is that it allows me to register
> >> clients to my dev instance and test client/server interactions.
> >>
> >> In the past, I would run the server using :
> >>      RAILS_RELATIVE_URL_ROOT=/katello bundle exec ./script/rails s
> >>
> >> It appears that there may have a been a recent change where this no
> >> longer works (i.e. thin is now the default app server).  So, if you
> >> encounter the same and want to use https with webrick, run the server
> >> using:
> >>
> >>      RAILS_RELATIVE_URL_ROOT=/katello bundle exec ./script/rails s
> >> webrick
> >
> > RAILS_RELATIVE_URL_ROOT=/katello is ignored, the relative url is
> > configured in katello.yml under url_prefix key. '/katello' is default
> > value.
> Perhaps it is unique to my environment, but if the ROOT is omitted the
> assets are not rendered properly (i.e. it attempts to fetch them without
> a prefix resulting in 404s).

brad, i've encountered this same problem. i've had to add RAILS_RELATIVE_URL_ROOT back into my server start command, otherwise none of the assets are loaded.

> >
> >
> >> (I'll check the wiki to see if it needs updates as well.)
> >>
> >> thanks,
> >> Brad
> >>
> >> _______________________________________________
> >> katello-devel mailing list
> >> katello-devel at redhat.com
> >> https://www.redhat.com/mailman/listinfo/katello-devel
> >
> > _______________________________________________
> > katello-devel mailing list
> > katello-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/katello-devel
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
> 

-- 
Adam Price
Software Engineer
Red Hat Inc., Raleigh

adprice at redhat dot com
http://github.com/komidore64
http://www.ohloh.net/accounts/komidore64




More information about the katello-devel mailing list