Production mode Error on 1.4pre8

30 views
Skip to first unread message

Catbus Omnibus

unread,
Aug 8, 2012, 11:12:57 AM8/8/12
to hobo...@googlegroups.com
Hi,

  I am using 1.4pre8. The app run well in production mode but it do not run in production mode.

  ActionView::Template::Error (front.css isn't precompiled):
    1: <page title="Home">
    2: 
    3:   <body: class="front-page"/>
    4: 
  app/views/taglibs/front_site.dryml:20:in `block in page_with_a1b430239d35'
  app/views/taglibs/front_site.dryml:19:in `page_with_a1b430239d35'
  app/views/front/index.dryml:1:in `block in render_page'
  app/views/front/index.dryml:1:in `render_page'
  app/views/front/index.dryml:1:in `_app_views_front_index_dryml___2335597753398848281_18929420'

  Do I need extra steps to make hobo run in production mode?


Bryan Larsen

unread,
Aug 8, 2012, 11:18:11 AM8/8/12
to hobo...@googlegroups.com
You need to run "rake assets:precompile" before running in production mode.

If you wish to switch back to development mode, remove the
public/assets directory.

More information here:

http://guides.rubyonrails.org/asset_pipeline.html

Bryan
> --
> 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/-/_VtKSYKTbYsJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Catbus Omnibus

unread,
Aug 8, 2012, 11:27:34 AM8/8/12
to hobo...@googlegroups.com
Thanks Bryan

I have tried the precompile options but it throws an error.

stack level too deep
  (in /home/me/.rvm/gems/ruby-1....@rails3.1hobo/gems/jquery-ui-themes-0.0.6/app/assets/stylesheets/jquery-ui/flick.css.scss)

I have tried both sass-rails 3.1.5. and 3.1.4 and they gave the same error. 

What is the recommended Gem setting for it in order to get it compiled?

Thanks a lot

Bryan Larsen

unread,
Aug 8, 2012, 11:36:23 AM8/8/12
to hobo...@googlegroups.com
Hmmm, that must be why I have

gem 'sass-rails', :git => "git://github.com/rails/sass-rails",
:branch => "3-1-stable"

in the Gemfile for one of my apps. Give that a try and see if it
fixes things for you.

Bryan
> https://groups.google.com/d/msg/hobousers/-/d_RcxwmrWzEJ.

Catbus Omnibus

unread,
Aug 8, 2012, 11:55:31 AM8/8/12
to hobo...@googlegroups.com
It works. Thanks a lot.


On Wednesday, 8 August 2012 23:36:23 UTC+8, Bryan Larsen wrote:
Hmmm, that must be why I have

  gem 'sass-rails',   :git => "git://github.com/rails/sass-rails",
:branch => "3-1-stable"

in the Gemfile for one of my apps.   Give that a try and see if it
fixes things for you.

Bryan

On Wed, Aug 8, 2012 at 11:27 AM, Catbus Omnibus <omnibu...@gmail.com> wrote:
> Thanks Bryan
>
> I have tried the precompile options but it throws an error.
>
> stack level too deep
>   (in
> /home/me/.rvm/gems/ruby-1.9.3-p1...@rails3.1hobo/gems/jquery-ui-themes-0.0.6/app/assets/stylesheets/jquery-ui/flick.css.scss)
Reply all
Reply to author
Forward
0 new messages