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/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">
<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">
</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>
On 1 December 2012 19:51, <[email protected]> wrote:
> Today's Topic Summary
>
> Group: http://groups.google.com/group/hobousers/topics
>
> - easy way to validate password for a lifecycle
> transition?<#13b580637c2bb518_group_thread_0>[4 Updates]
>
> easy way to validate password for a lifecycle
> transition?<http://groups.google.com/group/hobousers/t/b985120271f8eadf>
>
> kevinpfromnm <[email protected]> Nov 30 12:47PM -0800
>
> I'm trying to add a mass delete option for users to be able to purge
> their
> current items. I figured having them validate their password would be
> a
> good bit of security added since it's a pretty
> ...more<http://groups.google.com/group/hobousers/msg/635018bfe1fc3729>
>
>
> Owen Dall <[email protected]> Nov 30 03:52PM -0500
>
> Yes, that would be cool. : -)
>
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/hobousers?hl=en.
>
> --
> -Owen
>
> *
>
> Owen Dall
> ...more<http://groups.google.com/group/hobousers/msg/92ce26b606d49d4e>
>
>
> Bryan Larsen <[email protected]> Nov 30 07:57PM -0500
>
> I think the changes are available when the validations run, so maybe
> it's as simple as adding "password_changed &&" to the front of the
> password validation.
>
> Bryan
>
> ...more <http://groups.google.com/group/hobousers/msg/48012e528bec01e9>
>
>
> kevinpfromnm <[email protected]> Nov 30 06:07PM -0800
>
> That or maybe redefining changing_password? to not include check for
> current_password. Thanks
>
> On Friday, November 30, 2012 5:57:05 PM UTC-7, Bryan Larsen wrote:
> ...more <http://groups.google.com/group/hobousers/msg/d1bf9f520bb76166>
>
> You received this message because you are subscribed to the Google Group
> hobousers.
> You can post via email <[email protected]>.
> To unsubscribe from this group,
> send<[email protected]>an empty message.
> For more options, visit <http://groups.google.com/group/hobousers/topics>this
> group.
>
> --
> 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.
>
--
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.