Heroku错误编译CSS资产

时间:2016-06-09 20:07:44

标签: css ruby-on-rails heroku

在我最近部署到Heroku时,我收到此错误:

Error compiling css asset
Rack:Timeout:RequestTimeoutException: Request waited 3ms, then ran for longer than 1500ms
/app/vendors/bundle/ruby/2.20/gems-sass-3.4.22/lib/sass/tree/visitors/to_css.rba;67:in 'erase!"

我不太确定究竟是什么导致了这个问题,但我已经将其缩小到一个特定的部署,此前事情正在发生,但之后却被破坏了。我唯一改变的是html文件,并在其中一个样式表中更改了sass变量的值。我致力于git然后部署到Heroku。我意识到我的jQuery没有在页面上工作,所以我然后在本地预编译(正如我通常那样)并进行部署。现在,应用程序正在抛出该错误并超出其可用内存。然而,一切都在开发中运作良好。任何人都知道出了什么问题?

编辑:我应该补充说,架构超时gem会抛出机架超时错误,该错误旨在阻止慢速请求并记录错误。所以这不是直接问题,而是由于潜在的问题导致页面无法在分配的时间内响应。

这里是所要求的gemfile:

    #Use Jasny Bootstrap extension for input mask
    gem 'jasny-bootstrap-rails'

    #Use for Blog tags
    gem 'acts-as-taggable-on', '~> 3.4'

    #Use Carrierwave for image upload, fog for AWS S3
    gem 'carrierwave'
    gem "fog-aws"
    gem "mini_magick"

    # Use bootstrap will-paginate for pagination styling
    gem 'will_paginate-bootstrap'

    #Use will paginate for pagination
    gem 'will_paginate', '~> 3.1'

    #Use BetterLorem for seed text
    gem 'betterlorem', '~> 0.1.2'

    # Use date_validator gem to validate Event start & end times
    gem 'date_validator', '~> 0.9.0'

    # Use Bcrpyt for password encryption
    gem 'bcrypt', '~> 3.1', '>= 3.1.11'

    #Use FontAwesome for icons
    gem "font-awesome-rails"

    # Use to obfuscate email addresses on site
    gem 'actionview-encoded_mail_to', '~> 1.0', '>= 1.0.7'

    # Use to show instagram feed
    gem 'instagram', '~> 1.1', '>= 1.1.6'

    #Use TinyMCE to edit html content in posts
    gem 'tinymce-rails'

    # Use Jquery-turbolinks to fix turbolink issue
    gem 'jquery-turbolinks'

    # Timesout request that take longer than 15 seconds
    gem "rack-timeout"

    #Breadcrumb navigation
    gem "breadcrumbs_on_rails"

# Use Gibbon for Mailchimp API navigation
gem 'gibbon', '~> 2.2', '>= 2.2.4'


group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
  gem 'pry', '~> 0.10.3'
  # Use sqlite3 as the database for Active Record
  gem 'sqlite3', '~> 1.3', '>= 1.3.11'
  # Use for storing environmental variables
  gem 'dotenv-rails'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'
  # Tracks memory usage of each gem
  gem 'derailed'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

group :test do
  gem 'minitest', '~> 5.8', '>= 5.8.4'
  gem 'mini_backtrace', '~> 0.1.3'
  gem 'guard-minitest', '~> 2.4', '>= 2.4.4'
  gem 'guard'
  gem 'minitest-reporters', '~> 1.1', '>= 1.1.8'
end

group :production do
  gem 'pg', '~> 0.18.4'
  gem 'rails_12factor', '~> 0.0.3'
  gem 'puma'
end

0 个答案:

没有答案