Skip to content

Commit

Permalink
change assets precompile setting
Browse files Browse the repository at this point in the history
  • Loading branch information
xdite committed Nov 25, 2011
1 parent 8306658 commit ed123ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/application.rb
Expand Up @@ -40,7 +40,6 @@ class Application < Rails::Application

config.mongoid.include_root_in_json = false

config.assets.precompile += %w(application.css application.js topics.css topics.js window.css front.css cpanel.css users.css posts.css posts.js pages.css pages.js notifications.js notifications.css)
config.assets.enabled = true
config.assets.version = '1.0'

Expand Down
1 change: 1 addition & 0 deletions config/deploy.rb
Expand Up @@ -31,6 +31,7 @@
end
end


task :init_shared_path, :roles => :web do
run "mkdir -p #{deploy_to}/shared/log"
run "mkdir -p #{deploy_to}/shared/pids"
Expand Down
9 changes: 8 additions & 1 deletion config/environments/production.rb
Expand Up @@ -43,6 +43,7 @@
# Enable threaded mode
# config.threadsafe!


# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
Expand All @@ -54,9 +55,15 @@
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

config.assets.js_compressor = :uglifier
config.assets.css_compressor = :scss
config.assets.precompile += %w(application.css application.js topics.css topics.js window.css front.css cpanel.css users.css posts.css posts.js pages.css pages.js notifications.js notifications.css)


end

0 comments on commit ed123ad

Please sign in to comment.