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
=> 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
...
<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...
<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/5cJwPA/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">
</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">
</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>