Browse Source

Attempting to fix heroku not serving static assets

development
Godwin 11 years ago
parent
commit
7a556ee126
  1. 3
      Gemfile
  2. 4
      config/environments/production.rb

3
Gemfile

@ -37,14 +37,13 @@ gem 'haml_assets'
# gem 'handlebars_assets'
gem 'i18n-js'
gem 'jquery-turbolinks'
# gem 'less-rails'
gem 'sass-rails', '~> 4.0.0'
gem 'therubyracer'
gem 'compass-rails', '~> 2.0.alpha.0'
gem 'zurb-foundation'
gem 'turbolinks'
# gem 'twitter-bootstrap-rails', github: 'diowa/twitter-bootstrap-rails', branch: 'fontawesome-3.2.1'
gem 'uglifier', '>= 1.3.0'
gem 'rails_12factor', group: :production
group :development, :test do
gem 'debugger'

4
config/environments/production.rb

@ -27,7 +27,7 @@ Starterapp::Application.configure do
# config.assets.css_compressor = :sass
# Do not 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
@ -36,7 +36,7 @@ Starterapp::Application.configure do
config.assets.version = '1.0'
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.

Loading…
Cancel
Save