configuration for production environments like heroku

This commit is contained in:
Connor Turland 2015-09-19 13:25:30 -04:00
parent 869fb816e9
commit f5dbfd5d72
4 changed files with 12 additions and 1 deletions

View file

@ -35,6 +35,7 @@ end
group :production do #this is used on heroku
#gem 'rmagick'
gem 'rails_12factor'
end
group :development, :test do

View file

@ -150,6 +150,11 @@ GEM
loofah (~> 2.0)
rails3-jquery-autocomplete (1.0.15)
rails (>= 3.2)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.4)
rails_stdout_logging (0.0.4)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
@ -211,6 +216,7 @@ DEPENDENCIES
quiet_assets
rails (= 4.2.4)
rails3-jquery-autocomplete
rails_12factor
redis
sass-rails
uglifier

View file

@ -1,6 +1,7 @@
Metamaps::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
config.log_level = :info
config.eager_load = false
# In the development environment your application's code is reloaded on

View file

@ -1,6 +1,7 @@
Metamaps::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
config.log_level = :warn
config.eager_load = true
config.assets.js_compressor = :uglifier
@ -12,7 +13,9 @@ Metamaps::Application.configure do
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_files = true
config.assets.compile = true
# Compress JavaScripts and CSS
config.assets.compress = true