Can't precompile

43 views
Skip to first unread message

BackSeat

unread,
Dec 13, 2011, 7:54:39 AM12/13/11
to fat-free-...@googlegroups.com
I can to run ffcrm under nginx in development mode without problem.

I'm trying to run it in production mode to get better performance, and I realise I need to precompile ffcrm in order to do so. From the ffcrm directory, I'm running:

bundle exec rake assets:precompile --trace

...and that is failing with:

** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Invalid CSS after " *": expected "{", was "/"
  (in /usr/local/src/fat_free_crm/app/assets/stylesheets/application.css)
(sass):180
/usr/lib/ruby/gems/1.8/gems/sass-3.1.11/lib/sass/../sass/scss/parser.rb:926:in `expected'
[....]

It looks to me as if application.css is the output of this process, and whilst it does use the C-style /* comments */, they do not appear to be incorrect.

Can anyone shed any light on this? The aim of the exercise is to have ffcrm running faster than it does in development mode.

Thanks,
Keith

PS Which is preferred, this mailing list or User Echo? I don't think it's helpful to have both...

Steve Kenworthy

unread,
Dec 13, 2011, 10:05:33 PM12/13/11
to fat-free-...@googlegroups.com
Nathan has just pushed a bug fix for this into master.


Apologies for the problem... we'd like to find a way to test the asset compilation properly... Has anyone here done that before? We have regular CI builds and capistrano deployments but ideally i think it would be useful to have in a spec somewhere.

In terms of where to submit issues... we are currently in a transition period and agree that it's not helpful with both. For now, we're monitoring userEcho, mailing lists and github issues to cover off issues but would suggest userEcho is where we're heading.

Regards,
Steve

--
You received this message because you are subscribed to the Google Groups "Fat Free CRM Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fat-free-crm-users/-/w7RKrbZbGH8J.
To post to this group, send email to fat-free-...@googlegroups.com.
To unsubscribe from this group, send email to fat-free-crm-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fat-free-crm-users?hl=en.

Nathan Broadbent

unread,
Dec 13, 2011, 10:45:45 PM12/13/11
to fat-free-...@googlegroups.com
Hi, 

I've just added assets:precompile as the final step of our Travis CI build, so now we will catch any asset problems as soon as they appear.
Sorry about the crash!


Regards,
Nathan

BackSeat

unread,
Dec 14, 2011, 5:17:42 AM12/14/11
to fat-free-...@googlegroups.com
Nathan, Steve: thanks, I can confirm all OK on latest git.

- Keith
Reply all
Reply to author
Forward
0 new messages