Content
Precompile Openproject
Added by Frank Salas Gonzalez almost 10 years ago
Hi, i’m installing on Centos 6,5 when i recompile have this problem
RAILS_ENV=“production” bundle exec rake assets:precompile
rake aborted!
Sass::SyntaxError: Invalid CSS after " if ": expected expression (e.g. 1px, bold), was "& {" (in /home/openproject/openproject/app/assets/stylesheets/default.css.sass:4) /home/openproject/.rvm/gems/ruby-2.1.0/gems/bourbon-4.1.1/app/assets/stylesheets/css3/_selection.scss:4 /home/openproject/.rvm/gems/ruby-2.1.0/gems/bourbon-4.1.1/app/assets/stylesheets/_bourbon.scss:64 /home/openproject/openproject/app/assets/stylesheets/default.css.sass:28 /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:1312:in `expected' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/script/lexer.rb:216:in `expected!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/script/parser.rb:564:in `assert_expr' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/script/parser.rb:56:in `parse' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:1175:in `sass_script' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:316:in `if_directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:221:in `special_directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:193:in `directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:660:in `block_child' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:652:in `block_contents' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:641:in `block' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:233:in `mixin_directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:221:in `special_directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:193:in `directive' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:659:in `block_child' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:649:in `block_contents' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:116:in `stylesheet' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/scss/parser.rb:41:in `parse' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/engine.rb:409:in `_to_tree' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/engine.rb:305:in `to_tree' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:295:in `block in visit_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:88:in `block in with_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:121:in `with_frame' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:88:in `with_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:294:in `visit_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:36:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:152:in `block in visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:79:in `block in with_base' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:121:in `with_frame' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:79:in `with_base' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:152:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:297:in `block (2 levels) in visit_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:297:in `map' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:297:in `block in visit_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:88:in `block in with_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:121:in `with_frame' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:88:in `with_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:294:in `visit_import' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:36:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:152:in `block in visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:79:in `block in with_base' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:121:in `with_frame' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/stack.rb:79:in `with_base' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:152:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:52:in `block in visit_children' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:52:in `map' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:52:in `visit_children' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:161:in `block in visit_children' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:173:in `with_environment' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:160:in `visit_children' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:36:in `block in visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:180:in `visit_root' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/base.rb:36:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:151:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/visitors/perform.rb:8:in `visit' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/root_node.rb:36:in `css_tree' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/tree/root_node.rb:20:in `render' /home/openproject/.rvm/gems/ruby-2.1.0/gems/sass-3.3.14/lib/sass/engine.rb:274:in `render' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/sass_template.rb:53:in `evaluate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/context.rb:197:in `block in evaluate' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/context.rb:194:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/context.rb:194:in `evaluate' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/processed_asset.rb:12:in `initialize' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:374:in `new' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:374:in `block in build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:395:in `circular_call_protection' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:373:in `build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:94:in `block in build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/caching.rb:58:in `cache_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:93:in `build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:287:in `find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:61:in `find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/bundled_asset.rb:16:in `initialize' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:377:in `new' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:377:in `build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:94:in `block in build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/caching.rb:58:in `cache_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:93:in `build_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/base.rb:287:in `find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/index.rb:61:in `find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:211:in `block in find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:257:in `benchmark' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:210:in `find_asset' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:119:in `block in compile' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:118:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/sprockets/manifest.rb:118:in `compile' /home/openproject/.rvm/gems/ruby-2.1.0/gems/non-stupid-digest-assets-1.0.4/lib/non-stupid-digest-assets.rb:31:in `compile_with_non_digest' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-rails-e069c097056e/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-1e56fd0a92a9/lib/rake/sprocketstask.rb:146:in `with_logger' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/sprockets-rails-e069c097056e/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define' /home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval' /home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>' Tasks: TOP => assets:precompile (See full trace by running task with --trace) [openproject
centos openproject]$
Replies (1)
you have to manually modify Gemfile so that gem “bourbon” ,“4.0.0” and that will work