Skip to content

Commit c2d1521

Browse files
author
Aaron Baker
committed
try heroku gems for assets
1 parent 35d9f7b commit c2d1521

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ruby '2.0.0'
44
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
55
gem 'rails', '4.0.0.rc1'
66

7+
# try to fix herokus asset shit
8+
gem 'rails_log_stdout', github: 'heroku/rails_log_stdout'
9+
gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets'
10+
711
# Use postgresql as the database for Active Record
812
gem 'pg'
913

Gemfile.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
GIT
2+
remote: git://github.com/heroku/rails3_serve_static_assets.git
3+
revision: 84910ceb4ca2851d650e66d3b22f5008acf253f8
4+
specs:
5+
rails3_serve_static_assets (0.0.1)
6+
7+
GIT
8+
remote: git://github.com/heroku/rails_log_stdout.git
9+
revision: 01b5bcc572e3baed1618f4068920dd83bd491fb2
10+
specs:
11+
rails_log_stdout (0.0.1)
12+
113
GEM
214
remote: https://rubygems.org/
315
specs:
@@ -176,6 +188,8 @@ DEPENDENCIES
176188
pry-debugger
177189
pry-rails
178190
rails (= 4.0.0.rc1)
191+
rails3_serve_static_assets!
192+
rails_log_stdout!
179193
sass-rails (~> 4.0.0.rc1)
180194
sdoc
181195
slim-rails

app/assets/stylesheets/application.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ ul {
166166

167167
@font-face {
168168
font-family: "Gothamy";
169-
src: url('Gotham-Medium-4b8c3005d2cc56eec645ce898c116201.otf');
169+
src: url('Gotham-Medium.otf');
170170
font-weight: normal;
171171
font-style: normal;
172172
font-variant: normal;
173173
}
174174

175175
@font-face {
176176
font-family: "Gothamy";
177-
src: url('Gotham-Bold-2e8dc98fce38c98b542fe55746868060.otf');
177+
src: url('Gotham-Bold.otf');
178178
font-weight: bold;
179179
font-style: normal;
180180
font-variant: normal;

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# config.action_dispatch.rack_cache = true
2121

2222
# Disable Rails's static asset server (Apache or nginx will already do this).
23-
config.serve_static_assets = true
23+
config.serve_static_assets = false
2424

2525
# Compress JavaScripts and CSS.
2626
config.assets.js_compressor = :uglifier

0 commit comments

Comments
 (0)