Created
August 9, 2011 15:14
-
-
Save jgaskins/1134330 to your computer and use it in GitHub Desktop.
App config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path('../boot', __FILE__) | |
require "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "active_resource/railtie" | |
Bundler.require *Rails.groups(:assets) if defined?(Bundler) | |
module MyApp | |
class Application < Rails::Application | |
config.encoding = "utf-8" | |
config.filter_parameters += [:password] | |
config.assets.enabled = true | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rails', '3.1.0.rc5' | |
gem 'mongoid' | |
gem 'bson_ext' | |
gem 'paperclip' # Upload images for the gallery | |
gem 'devise' # Authentication | |
gem 'cancan' # Authorization | |
gem 'haml' # Markup | |
gem 'redcarpet' # Markdown templates | |
gem 'dalli' # Memcached interface | |
gem 'oa-oauth', require: 'omniauth/oauth' # For Facebook Authentication | |
# Asset template engines | |
group :assets do | |
gem 'sass-rails', "~> 3.1.0.rc" | |
gem 'coffee-rails', "~> 3.1.0.rc" | |
gem 'uglifier' | |
end | |
gem 'jquery-rails' | |
# Use unicorn as the web server | |
gem 'unicorn' | |
# Deploy to Heroku | |
group :production do | |
gem 'therubyracer-heroku' | |
end | |
gem 'rspec-rails', group: [:test, :development] | |
group :test do | |
# Pretty printed test output | |
gem 'capybara' | |
gem 'factory_girl_rails' | |
gem 'turn', :require => false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp::Application.configure do | |
config.cache_classes = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
config.serve_static_assets = true | |
config.assets.compress = true | |
config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx | |
config.cache_store = :dalli_store | |
config.i18n.fallbacks = true | |
config.active_support.deprecation = :notify | |
config.action_mailer.default_url_options = { :host => 'exalted.herokuapp.com' } | |
endMyApp::Application.configure do | |
config.cache_classes = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
config.serve_static_assets = true | |
config.assets.compress = true | |
config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx | |
config.cache_store = :dalli_store | |
config.i18n.fallbacks = true | |
config.active_support.deprecation = :notify | |
config.action_mailer.default_url_options = { :host => 'exalted.herokuapp.com' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment