Приложение Heroku Crashes для файла .sass - PullRequest
1 голос
/ 26 сентября 2011

Мое приложение rails отлично работает на моей локальной машине с Ubuntu, но когда я помещаю его на heroku и захожу на сайт, приложение вылетает со следующими ошибками.

2011-09-26T03:45:52+00:00 heroku[web.1]: State changed from created to starting
2011-09-26T03:45:54+00:00 heroku[web.1]: Starting process with command `thin -p 7208 -e production -R /home/heroku_rack/heroku.ru start`
2011-09-26T03:46:00+00:00 app[web.1]: WARNING on line 640 of /app/app/stylesheets/simpla/style.sass:
2011-09-26T03:46:00+00:00 app[web.1]: This selector doesn't have any properties and will not be rendered.
2011-09-26T03:46:03+00:00 app[web.1]: WARNING: 'ui-ui-bg_flat_0_000000_40x100.png' was not found (or cannot be read) in /app/public/images
2011-09-26T03:46:03+00:00 app[web.1]: WARNING on line 122 of /app/app/stylesheets/calendar/jquery.weekcalendar.sass:
2011-09-26T03:46:03+00:00 app[web.1]: This selector doesn't have any properties and will not be rendered.
2011-09-26T03:46:03+00:00 app[web.1]: WARNING on line 214 of /app/app/stylesheets/calendar/jquery.weekcalendar.sass:
2011-09-26T03:46:03+00:00 app[web.1]: This selector doesn't have any properties and will not be rendered.
2011-09-26T03:46:03+00:00 app[web.1]: WARNING on line 122 of /app/app/stylesheets/calendar/jquery.weekcalendar.sass:
2011-09-26T03:46:03+00:00 app[web.1]: This selector doesn't have any properties and will not be rendered.
2011-09-26T03:46:03+00:00 app[web.1]: WARNING on line 214 of /app/app/stylesheets/calendar/jquery.weekcalendar.sass:
2011-09-26T03:46:03+00:00 app[web.1]: This selector doesn't have any properties and will not be rendered.
2011-09-26T03:46:03+00:00 app[web.1]: /app/app/stylesheets/calendar/jquery.weekcalendar.sass:6:in `linear-gradient': Undefined mixin 'linear-gradient'. (Sass::SyntaxError)
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/app/stylesheets/calendar/jquery.weekcalendar.sass:6
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/perform.rb:169:in `visit_mixin'
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/base.rb:37:in `send'
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/base.rb:37:in `visit'
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/perform.rb:18:in `visit'
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/base.rb:53:in `visit_children'
2011-09-26T03:46:03+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/sass-3.1.7/lib/sass/../sass/tree/visitors/base.rb:53:in `map'
.
. 
2011-09-26T03:46:04+00:00 heroku[web.1]: Process exited
2011-09-26T03:46:04+00:00 heroku[web.1]: State changed from starting to crashed
2011-09-26T03:47:27+00:00 heroku[slugc]: Slug compilation started

В начале моего приложения / stylesheets / calendar / jquery.weekcalendar.sass указано следующее:

.wc-container
  font-size: 14px
  font-family: arial, helvetica

.wc-toolbar
  +linear-gradient(color-stops(#EFEFEF, #D5D5D5))
  border: 1px solid #DADADA
  padding: 1em
  font-size: 0.8em
  .wc-nav
    float: left
  .wc-display
    float: right
  button
    margin-top: 0
    margin-bottom: 0
  .wc-title
    text-align: center
    padding: 0
    margin: 0

Строка 6 - это строка с + линейный градиент-stops (#EFEFEF, # D5D5D5)) ".Моя локальная машина не жалуется на эту линию, интересно, почему героку на это жалуют.

1 Ответ

0 голосов
/ 29 сентября 2011

Поскольку линейный градиентный миксин определен в ./vendor/bundle/ruby/1.8/gems/compass-0.10.6/frameworks/compass/stylesheets/compass/css3/_gradient.scss, мне пришлось добавить @import "compass"в приложение / таблицы стилей / календарь / jquery.weekcalendar.sass

...