Skip to content

Commit

Permalink
static assets for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Dec 9, 2011
1 parent 59fe344 commit 2b089e6
Show file tree
Hide file tree
Showing 39 changed files with 137 additions and 7 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ class Application < Rails::Application
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'

config.assets.initialize_on_precompile = false


config.generators do |g|
g.template_engine :haml
g.test_framework :mini_test, :spec => true
g.orm :mongo_mapper
end

end
end
8 changes: 4 additions & 4 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
adapter: pg
database: whatever
pool: 5
timeout: 5000

Expand All @@ -19,7 +19,7 @@ test:
timeout: 5000

production:
adapter: sqlite3
database: db/production.sqlite3
adapter: pg
database: whatever
pool: 5
timeout: 5000
9 changes: 6 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
config.action_controller.perform_caching = true

# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
#config.serve_static_assets = false

# Compress JavaScripts and CSS
config.assets.compress = true
config.assets.digest = true

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

# Generate digests for assets URLs
config.assets.digest = true
#config.assets.digest = true

# Specifies the header that your server uses for sending files
# (comment out if your front-end server doesn't support this)
Expand Down Expand Up @@ -55,4 +55,7 @@

# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify

config.assets.initialize_on_precompile = false

end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Binary file not shown.
18 changes: 18 additions & 0 deletions public/assets/application-61575177024fc17e65e05f2e49f30367.js

Large diffs are not rendered by default.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/assets/jquery-1-eb0df96db50ee68e8c7ee60545f4d6c9.5.2.min.js

Large diffs are not rendered by default.

Binary file not shown.
18 changes: 18 additions & 0 deletions public/assets/jquery-7b90fc893c29119e4f1ee0a0fcfff9e3.min.js

Large diffs are not rendered by default.

Binary file not shown.
4 changes: 4 additions & 0 deletions public/assets/jquery-cb102f78b7a38730cfb9af1b66582215.pjax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Equal Heights Plugin
* Equalize the heights of elements. Great for columns or any elements
* that need to be the same size (floats, etc).
*
* Version 1.1
* Updated 28/06/2010
*
* Copyright (c) 2008 Rob Glazebrook (cssnewbie.com)
*
* Usage: $(object).equalHeights([minHeight], [maxHeight]);
*
* Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
* Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
* Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
* than 300 pixels tall. Elements with too much content will gain a scrollbar.
*
*/
(function(a){a.fn.equalHeights=function(b,c){tallest=b?b:0,this.each(function(){a.browser.msie&&a.browser.version.substr(0,1)<7?this.offsetHeight>tallest&&(tallest=this.offsetHeight):a(this).height()>tallest&&(tallest=a(this).height())}),c&&tallest>c&&(tallest=c);return this.each(function(){a.browser.msie&&a.browser.version.substr(0,1)<7?a(this).height(tallest):a(this).css({"*height":tallest,"min-height":tallest}),$childElements=a(this).children(".autoPadDiv"),$childElements.css({"*height":tallest,"min-height":tallest})})}})(jQuery)
Binary file not shown.
16 changes: 16 additions & 0 deletions public/assets/jquery-ui-f31894c40bd99050d19adc375e6e6cb5.min.js

Large diffs are not rendered by default.

Binary file not shown.
28 changes: 28 additions & 0 deletions public/assets/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
404.jpg: 404-006c739251b864459ddfda2b4db6d525.jpg
503.png: 503-946a689c3f957f56d74d4fc5572e3b52.png
avatar.png: avatar-4c17564dad5a7f7452a9c0923a91ab21.png
embed/css3buttons_backgrounds.png: embed/css3buttons_backgrounds-c5b319dd094eb854d942dbfcf28f5497.png
embed/css3buttons_icons.png: embed/css3buttons_icons-bdbf6b70bacd25321f9934186b8e0fe2.png
embed/logo-sm.png: embed/logo-sm-c1f9c11103f01c6f229a13a647a7b551.png
embed/logo.png: embed/logo-5dcb7223e74c9688accefc819eb874f6.png
embed/nav-background.png: embed/nav-background-7773f6e886884aa06d4e0fb5b5bba959.png
embed/trash.png: embed/trash-328acb4a490b6e4ce6edfff60ff00bb2.png
f_logo.png: f_logo-bc3794da6befe6b074bf4bad910750f7.png
icons_sprite.png: icons_sprite-c43750e644e85830fe7ce49b2d0135ad.png
identica.png: identica-f017a827b6830f525b8f1c1d4b2ebd9a.png
mobile_icons/apple-touch-icon.png: mobile_icons/apple-touch-icon-429a458ed0e64be7f8f8f2ce3c700483.png
mobile_icons/apple-touch-icon_114.png: mobile_icons/apple-touch-icon_114-1cd012567f819264931e3ac45d91c66a.png
mobile_icons/apple-touch-icon_72.png: mobile_icons/apple-touch-icon_72-0473e59da1317d0af1d57bc86c88f574.png
slide1.png: slide1-5dd1b6b8ec93eb6f9d15b0d84f883231.png
slide2.png: slide2-1ab49b82188ee4ddfee0e94c875e0ec9.png
slide3.png: slide3-cfa4a836c6cf4b2ca6eee8c2dcc8f698.png
twitter_newbird_blue.png: twitter_newbird_blue-abf7b4b950dfbaad6169a3f5d082c735.png
jquery-1.5.2.min.js: jquery-1-eb0df96db50ee68e8c7ee60545f4d6c9.5.2.min.js
jquery.equalHeights.js: jquery-f482874aaf13ed086b4d8daf33022cf5.equalHeights.js
jquery.pjax.js: jquery-cb102f78b7a38730cfb9af1b66582215.pjax.js
updates.show.js: updates-4659de9dacd869da855de2d725338ec4.show.js
jquery-ui.min.js: jquery-ui-f31894c40bd99050d19adc375e6e6cb5.min.js
jquery.min.js: jquery-7b90fc893c29119e4f1ee0a0fcfff9e3.min.js
application.js: application-61575177024fc17e65e05f2e49f30367.js
application.css: application-42cbff42ceedbb1f5bd68c4ac59ec14b.css
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

0 comments on commit 2b089e6

Please sign in to comment.