It's in config/initializers/dryml_taglibs.rb.   Try commenting that
out to see if that helps.

Bryan


On Tue, Dec 4, 2012 at 5:00 AM, Rupert Meese
<[email protected]> wrote:
>
> Hi Bryan,
>
> Sorry this thread's title is mangled I rushed hitting send last night and
> hadn't cleaned up the subject etc.
>
> Thanks for the help, I haven't got a file config/initializers/hobo.rb or
> indeed a precompile_tablibs in the project - either on the development or
> production machines.  Is this odd?  The code's in
> https://github.com/meesern/automics_api.
>
> I'm not sure where to look next.  Whereabouts in the filesystem is DRYML
> compiler output saved?
>
> Cheers
> Rupert
>
>
>
> On Monday, December 3, 2012 11:26:10 PM UTC, Bryan Larsen wrote:
>>
>> Rupert,
>>
>> Try removing the call to precompile_tablibs in
>> config/initializers/hobo.rb.   Let us know if that helps.
>>
>> BTW, Hobo 2.0 has a much improved way of handling themes.
>>
>> cheers,
>> Bryan
>>
>> On Mon, Dec 3, 2012 at 11:50 AM, Rupert Meese
>> <[email protected]> wrote:
>> > Hi,
>> >
>> > I've got an app running hobo 1.3.2 with rails 3.0.17 and ruby 1.9.3
>> > under
>> > RVM.  All works fine on my development Ubuntu machine but when I deploy
>> > to
>> > the production environment (ubuntu, same gems, RVM, Passenger) the theme
>> > goes missing.  Instead of the custom theme that I have in the
>> > development
>> > environment I get the default 'clean' theme (plus a search results box
>> > and a
>> > couple of oddly placed spinning icons).   Other than that, the behaviour
>> > of
>> > the app seems ok.  There is no sign of an error in the log/production or
>> > apache logs.  If I view source I can see that the html includes
>> >    <link type="text/css" rel="Stylesheet" media="all"
>> > href="/hobothemes/clean/stylesheets/clean.css">
>> > when it should read
>> >    <link type="text/css" rel="Stylesheet" media="all"
>> > href="/hobothemes/white/stylesheets/white.css">
>> >
>> > yet app/views/taglibs/application.dryml properly contains
>> >     <set-theme name="white"/>
>> > And if I edit the file to put some junk output in the footer and touch
>> > tmp/restart.txt I can see that output so I know the file is being read
>> > and
>> > compiled through dryml.
>> >
>> >
>> > This has been driving me crazy for a couple of days now.  I thought that
>> > it
>> > might be something to do with apache/passenger but the really odd thing
>> > is
>> > that on the production machine I can do this...
>> >
>> > RAILS_ENV=production bundle exec rails s
>> > => Booting WEBrick
>> > => Rails 3.0.17 application starting in production on
>> > http://0.0.0.0:3000
>> > => Call with -d to detach
>> > => Ctrl-C to shutdown server
>> > [2012-12-03 16:33:10] INFO  WEBrick 1.3.1
>> > [2012-12-03 16:33:10] INFO  ruby 1.9.3 (2012-10-12) [x86_64-linux]
>> > [2012-12-03 16:33:10] INFO  WEBrick::HTTPServer#start: pid=7376
>> > port=3000
>> >
>> >
>> > Then on a new window on the production server
>> > curl http://localhost:3000/
>> > ...
>> >
>> >  <link type="text/css" rel="Stylesheet" media="all"
>> > href="/hobothemes/clean/stylesheets/clean.css">
>> > ....
>> >
>> >
>> > I.e. I get the same problem with WebBrick!
>> >
>> > What on earth can be going on to mean that set-theme is being
>> > ignored/failing?
>> >
>> >
>> > Any help greatly appreciated!!
>> >
>> > Cheers
>> > Rupert
>> >
>> >
>> >
>> >
>> > P.S.  Full output for the curl is...
>> >
>> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> > "http://www.w3.org/TR/xhtm
>> > l1/DTD/xhtml1-transitional.dtd">  <html
>> > xmlns="http://www.w3.org/1999/xhtml";>
>> >     <head>      <title>Home : Automics Api</title>
>> > <!-- note that this is probably overridden in your
>> > app/views/taglibs/themes/xxx/xxx.dryml
>> >  -->  <link href="/stylesheets/reset.css?1354544597" media="screen"
>> > rel="stylesheet" type
>> > ="text/css" />
>> > <link href="/stylesheets/hobo-rapid.css?1354544597" media="screen"
>> > rel="stylesheet" type=
>> > "text/css" />
>> > <link href="/hobothemes/clean/stylesheets/clean.css" media="all"
>> > rel="Stylesheet" type="t
>> > ext/css" />  <link class="app-stylesheet"
>> > href="/stylesheets/application.css?1354544597"
>> > media="screen" rel="stylesheet" type="text/css" />
>> >
>> >       <script src="/javascripts/prototype.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/effects.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/dragdrop.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/controls.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/rails.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/lowpro.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/hobo-rapid.js?1354544597"
>> > type="text/javascript"></script>
>> >   <!--[if lt IE 7]>      <script src="/javascripts/IE7.js?1354544597"
>> > type="text/javascript"></script>
>> >       <script src="/javascripts/ie7-recalc.js?1354544597"
>> > type="text/javascript"></script>
>> > <![endif]-->
>> >       <script src="/javascripts/application.js?1354544597"
>> > type="text/javascript"></script>
>> >       <meta name="csrf-param" content="authenticity_token"/>
>> > <meta name="csrf-token"
>> > content="XAc0&#47;5cJwPA&#47;pW8QXnfETvGjr105Ae+LgGUSfUHjbwY="/>
>> > </head>
>> > <body class="front-page"><div id="ajax-progress"><div>      <span
>> > id="ajax-progress-text"></span>
>> > </div></div>  <div class="header page-header"><ul class="navigation
>> > account-nav">
>> >         <li class="nav-item log-in"><a
>> > href="http://localhost:3000/wp_user_login";>Login</a></li>
>> >
>> > </ul>          <h1 class="app-name"><a href="/">Automics Api</a></h1>
>> > <div class="search">    <label for="search-field">Search</label><input
>> > class="live-search" type="search" />
>> > iv class="close-button">close</div>
>> >     <div class="section " id="search-results">    &nbsp;
>> > </div>
>> >
>> > </div><ul class="navigation main-nav">    <li class="current">    <a
>> > href="/">Home</a>
>> > </li>
>> >     <li class="">    <a class="class-link"
>> > href="/annotations">Annotations
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link" href="/comics">Comics
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link"
>> > href="/organisations">Organisations
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link" href="/panels">Panels
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link" href="/photos">Photos
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link" href="/resources">Resources
>> > </a>
>> > </li>
>> >     <li class="">    <a class="class-link" href="/themes">Themes
>> > </a>
>> > </li>
>> > </ul></div>
>> > <div class="section with-flash content">      <div class="header
>> > content-header">      <h1>Welcome to Automics Api</h1>
>> > <div class="section welcome-message">            <h3>Congratulations!
>> > Your
>> > Hobo Rails App is up and running</h3>
>> > <ul>          <li>To customise this page: edit
>> > app/views/front/index.dryml</li>
>> > </ul>
>> >
>> >
>> >
>> > </div></div>
>> >
>> >
>> > </div>
>> >   <script type="text/javascript">var hoboParts = {};var pluralisations =
>> > {};
>> > urlBase = ''; hoboPagePath = '%2F'; formAuthToken = { name:
>> > 'authenticity_token', value:
>> > 'XAc0/5cJwPA/pW8QXnfETvGjr105Ae+LgGUSfUHjbwY='
>> > }</script>
>> > </body>
>> >
>> >
>> >
>> >
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/jRgv8jhAxRIJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to