RubyonRails:对custom.css.scs的任何更改都会导致应用程序崩溃

RubyonRails:对custom.css.scs的任何更改都会导致应用程序崩溃,css,ruby-on-rails,sass,Css,Ruby On Rails,Sass,我正在学习rails。我有这个问题,希望你能帮助我。 HTTP应答码是500。。。我正在学习rails教程。。。 添加样式-/*侧边栏后网站崩溃*/ 这是我的custome.css.scss: @import "bootstrap"; /* mixins, variables, etc. */ $grayMediumLight: #eaeaea; /* universal */ html { overflow-y: scroll; } body { padding-top: 6

我正在学习rails。我有这个问题,希望你能帮助我。 HTTP应答码是500。。。我正在学习rails教程。。。 添加样式-/*侧边栏后网站崩溃*/

这是我的custome.css.scss:

@import "bootstrap";

/* mixins, variables, etc. */

$grayMediumLight: #eaeaea;

/* universal */

html {
  overflow-y: scroll;
}

body {
  padding-top: 60px;
}

section {
  overflow: auto;
}

textarea {
  resize: vertical;
}

.center {
  text-align: center;
  h1 {
    margin-bottom: 10px;
  }
}

/* typography */

h1, h2, h3, h4, h5, h6 {
  line-height: 1;
}

h1 {
  font-size: 3em;
  letter-spacing: -2px;
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  font-size: 1.7em;
  letter-spacing: -1px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: normal;
  color: $grayLight;
}

p {
  font-size: 1.1em;
  line-height: 1.7em;
}


/* header */

#logo {
  float: left;
  margin-right: 10px;
  font-size: 1.7em;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
  padding-top: 9px;
  font-weight: bold;
  line-height: 1;
  &:hover {
    color: white;
    text-decoration: none;
  }
}

/* footer */

footer {
  margin-top: 45px;
  padding-top: 5px;
  border-top: 1px solid $grayMediumLight;
  color: $grayLight;
  a {
    color: $gray;
    &:hover {
      color: $grayDarker;
    }
  }
  small {
    float: left;
  }
  ul {
    float: right;
    list-style: none;
    li {
      float: left;
      margin-left: 10px;
    }
  }
}

/* sidebar */

aside {
  section {
    padding: 10px 0;
    border-top: 1px solid $grayLighter;
    &:first-child {
      border: 0;
      padding-top: 0;
    }
    span {
      display: block;
      margin-bottom: 3px;
      line-height: 1;
    }
    h1 {
      font-size: 1.4em;
      text-align: left;
      letter-spacing: -1px;
      margin-bottom: 3px;
      margin-top: 0px;
    }
  }
}

.gravatar {
  float: left;
  margin-right: 10px;
}
为什么网站会因为重命名评论而失败?它是语法语言“SASS”吗?
其他文件

这里的问题可能是您使用的方式以及编译代码的问题

我不确定你的rails设置,但我想看看


如果您提供有关rails应用程序的更多信息,我将尽力解决此问题。

在您的项目中,当您键入
gem list
时,是否会看到
sass-rails
?如果没有,则打开gem文件并添加
gem sass rails
,然后执行
捆绑安装
是。添加了一个
gem
。我使用rails 4。。。如果我没弄错的话,我有两个并发请求。这可能是错误的原因吗
Rendered users/show.html.erb in layouts/application(34.1ms)
Rendered users/show.html.erb in layouts/application(34.1ms)
在1416ms内完成了500个内部服务器错误
是,这可能完全是个问题。这个问题可能比sass编译错误更为根深蒂固。我理解为什么这两个请求(
rails\u 12factor
-production)没有,但解决方案没有帮助。所有问题都是由于
gem bootstrap
版本造成的。我有第三个版本的
gem
。换成第二个版本,效果不错。