Commit d00c37f8 authored by Hermann Mayer's avatar Hermann Mayer
Browse files

[Assets] Precompiled them and enabled fallback for production environment.

parent b2fbb109
Loading
Loading
Loading
Loading
+0 −69
Original line number Diff line number Diff line
body {
  background-color: #fff;
  color: #333;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}

a {
  color: #000;
  &:visited {
    color: #666;
  }
  &:hover {
    color: #fff;
    background-color: #000;
  }
}

div {
  &.field, &.actions {
    margin-bottom: 10px;
  }
}

#notice {
  color: green;
}

.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}

#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
  h2 {
    text-align: left;
    font-weight: bold;
    padding: 5px 5px 5px 15px;
    font-size: 12px;
    margin: -7px;
    margin-bottom: 0px;
    background-color: #c00;
    color: #fff;
  }
  ul li {
    font-size: 12px;
    list-style: square;
  }
}
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ module KickerTracker

    # Enable the asset pipeline
    config.assets.enabled = true
    config.assets.initialize_on_precompile = false

    # Version of your assets, change this if you want to expire all your assets
    config.assets.version = '1.0'
+3 −3
Original line number Diff line number Diff line
@@ -37,6 +37,6 @@ production:
  reconnect: false
  database: kicker-tracker_production
  pool: 5
  username: root
  password:
  host: localhost
  username: kicker-tracker
  password: 4sYYPNZqRaSQbQPB
  host: server.lan
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ KickerTracker::Application.configure do
  config.assets.compress = true

  # Don't fallback to assets pipeline if a precompiled asset is missed
  config.assets.compile = false
  config.assets.compile = true 

  # Generate digests for assets URLs
  config.assets.digest = true
+17 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading