ruby on rails - Cloudinary Gem Breaking Bootstrap on Heroku -


i have rails app has photo uploading feature. using carrierwave_direct upload directly s3 (based on railscast 383). in order optimize app, went ahead , switched cloudinary.

the app works locally fine cloudinary. when pushed heroku app crashes server log error:

actionview::template::error (invalid css after "  font-family: ": expected expression (e.g. 1px, bold), "@altfontfamily;" 2013-09-04t05:16:29.148898+00:00 app[web.1]:   (in /app/app/assets/stylesheets/application.css)): 2013-09-04t05:16:29.148898+00:00 app[web.1]:     12:       <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script> 2013-09-04t05:16:29.148898+00:00 app[web.1]:     13:     <![endif]--> 2013-09-04t05:16:29.148898+00:00 app[web.1]:     14:  2013-09-04t05:16:29.148898+00:00 app[web.1]:     15:     <%= stylesheet_link_tag "application", :media => "all" %> 2013-09-04t05:16:29.148898+00:00 app[web.1]:     16:  2013-09-04t05:16:29.148898+00:00 app[web.1]:     17:     <!-- third-generation ipad high-resolution retina display: --> 2013-09-04t05:16:29.148898+00:00 app[web.1]:     18:     <!-- size should 144 x 144 pixels --> 2013-09-04t05:16:29.149145+00:00 app[web.1]:   app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__164934612574999860_69925614481940' 2013-09-04t05:16:29.149145+00:00 app[web.1]:  2013-09-04t05:16:29.149145+00:00 app[web.1]:  2013-09-04t05:16:29.149499+00:00 app[web.1]: processing landingcontroller#landing html 2013-09-04t05:16:29.149499+00:00 app[web.1]:   rendered landing/landing.html.erb within layouts/application (58.3ms) 2013-09-04t05:16:29.149499+00:00 app[web.1]: completed 500 internal server error in 158ms 

i reverted previous commit previous adding cloudinary (when app worked, , have isolated moment when app starts breaking when add cloudinary gem. though error references css error app breaks when add cloudinary gem.

in process of trying figure out discovered when run heroku run rake error.

rake aborted! undefined method `[]' nil:nilclass

i suspect issue, app breaks when adding cloudinary gem, though if run 'heroku run rake' before adding gem, same error, yet app still functions.

here got when ran heroku run rake --trace

$ heroku run rake --trace running `rake --trace` attached terminal... up, run.1893 deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) ** invoke default (first_time) ** invoke spec (first_time) ** invoke test:prepare (first_time) ** invoke db:test:prepare (first_time) ** invoke db:abort_if_pending_migrations (first_time) ** invoke environment (first_time) ** execute environment ** invoke db:load_config (first_time) ** execute db:load_config ** execute db:abort_if_pending_migrations ** execute db:test:prepare ** invoke db:test:load (first_time) ** invoke db:test:purge (first_time) ** invoke environment  ** invoke db:load_config  ** execute db:test:purge rake aborted! undefined method `[]' nil:nilclass /app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:511:in `block (3 levels) in <top (required)>' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `call' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke' /app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:544:in `block (3 levels) in <top (required)>' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `call' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain' /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `each' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75:in `run' /app/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/bin/rake:33:in `<top (required)>' /app/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load' /app/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>' tasks: top => db:test:load => db:test:purge 

any suggestions appreciated.

edit adding application.css file.

/*  * manifest file that'll compiled application.css, include files  * listed below.  *  * css , scss file within directory, lib/assets/stylesheets, vendor/assets/stylesheets,  * or vendor/assets/stylesheets of plugins, if any, can referenced here using relative path.  *  * you're free add application-wide styles file , they'll appear @ top of  * compiled file, it's better create new file per style scope.  *  *= require_self  *= require bootstrap_and_overrides  *= require jquery.ui.datepicker  *= require_tree .  *= require jquery.ui.all  */   input[type=number]::-webkit-inner-spin-button,  input[type=number]::-webkit-outer-spin-button {   -webkit-appearance: none;   margin: 0;  }  .form-signin {         max-width: 300px;         padding: 19px 29px 29px;         margin: 0 auto 20px;         background-color: #fff;         opacity: .9;         border: 5px solid #0367b0;         -webkit-border-radius: 5px;            -moz-border-radius: 5px;                 border-radius: 5px;         -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);            -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);                 box-shadow: 0 1px 2px rgba(0,0,0,.05);                 text-align: center;       } h2.form-signin {   font-family: @altfontfamily; } .landing {   background: url('baseball_dirt.jpg') no-repeat scroll center top transparent;   height: 100%;   padding:120px 0; } .signup {   background: url('homeplate_line.jpg') no-repeat scroll center top transparent;   height: 100%;   padding:120px 0; } .signip .well {   opacity: .85; } .signin {   background: url('baseball_dirt.jpg') no-repeat scroll center top transparent;   height: 100%;   padding:120px 0; } .signin .well {   opacity: .85; } 

i tracked down error, invalid css.

  font-family: 'myriad w01 lt it'; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -