Last active
September 30, 2015 19:48
-
-
Save cblunt/1853175 to your computer and use it in GitHub Desktop.
Deprecated: Use https://gist.github.com/cblunt/1042832
This file contains hidden or 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
# config/initializers/airbrake.rb | |
Airbrake.configure do |config| | |
config.host = 'exceptions.codebasehq.com' | |
config.api_key = 'api_key' | |
end |
This file contains hidden or 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
# config/application.rb | |
# Configure ActionMailer to send via SendGrid | |
config.action_mailer.smtp_settings = { | |
:address => 'smtp.sendgrid.net', | |
:port => 587, | |
:domain => ENV['SENDGRID_DOMAIN'], | |
:authentication => :plain, | |
:user_name => ENV['SENDGRID_USERNAME'], | |
:password => ENV['SENDGRID_PASSWORD'], | |
:enable_starttls_auto => true | |
} | |
config.action_mailer.default_url_options = { :host => ENV['SENDGRID_DOMAIN'] } | |
config.action_mailer.delivery_method = :smtp | |
# Configure exception notification | |
#config.middleware.use ExceptionNotifier, | |
# :email_prefix => '[Exceptions] [Application Name] ', | |
# :exception_recipients => %w{[email protected]} | |
# :sender_address => '[email protected]', |
This file contains hidden or 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
CarrierWave.configure do |config| | |
# Configuration for Rackspace Cloud Files | |
config.fog_credentials = { | |
:provider => 'Rackspace', | |
:rackspace_username => ENV['CLOUDFILES_USERNAME'], | |
:rackspace_api_key => ENV['CLOUDFILES_API_KEY'], | |
:rackspace_auth_url => "lon.auth.api.rackspacecloud.com", | |
:rackspace_servicenet => Rails.env.production? | |
} | |
# For testing, upload files to local `tmp` folder. | |
if Rails.env.test? || Rails.env.cucumber? | |
config.storage = :file | |
config.enable_processing = false | |
config.root = "#{Rails.root}/tmp" | |
else | |
config.storage = :fog | |
end | |
config.cache_dir = "#{Rails.root}/tmp/uploads" # To let CarrierWave work on heroku | |
config.fog_directory = ENV['CLOUDFILES_PUBLIC_CONTAINER'] | |
config.asset_host = ENV['CLOUDFILES_PUBLIC_CDN_HOST'] | |
end |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'rails', '~> 3.2' # 3.2.x ensures security updates. | |
#gem 'pg' | |
gem 'mysql2' | |
gem 'jquery-rails' | |
gem 'json' | |
gem 'slim-rails' | |
# Form rendering helpers | |
gem 'simple_form' | |
# Pagination | |
gem 'kaminari' | |
# For monitoring the app on NewRelic | |
gem 'newrelic_rpm', :group => :production | |
# To notify developer of exceptions, use: | |
# gem 'exception_notification' | |
# | |
# Or use Airbrake on Codebase for notifications | |
gem 'airbrake' | |
# Use Letter Opener to open rendered mailers in your browser | |
gem 'letter_opener', :group => :development | |
# Bcrypt ruby needed for ActiveRecord::secure_password | |
gem 'bcrypt-ruby', '~> 3.0.0' | |
# For APIs / rendering JSON views | |
# gem 'rabl' | |
# gem 'oj' | |
# For hooking deploys into Codebase API | |
gem 'codebase4' | |
# Custom Gems | |
# gem 'plymsoftware_core', :git => 'git://github.com/plymouthsoftware/core.git' | |
# Other useful gems | |
# gem 'friendly_id', '~> 4.0.0' | |
# gem 'rack-ssl', :require => 'rack/ssl' | |
# gem 'whenever', :require => false | |
# gem 'uuid', '~> 2.3' # Ruby 1.8 | |
# Normalize ActiveRecord attributes | |
gem 'attribute_normalizer' | |
# Generate search engine sitemaps | |
# gem 'sitemap_generator' | |
# File uploads / Cloud Storage | |
# gem 'carrierwave' | |
# gem 'fog', '~> 1.0' | |
# gem 'mini_magick' | |
# Payments, e.g. PayPal | |
# gem 'activemerchant' | |
# Use passenger standalone as a server? | |
# gem 'passenger', :require => false | |
group :development, :test do | |
gem 'awesome_print' | |
gem 'capistrano', :require => false | |
gem 'guard-rspec', :require => false | |
gem 'yard', :require => false | |
gem 'fabrication' | |
gem 'faker' | |
gem 'mocha' | |
gem 'shoulda-matchers' | |
gem 'steak' # includes rspec and capybara | |
# gem 'simplecov', : require => false # Ruby 1.9 | |
end | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
# Twitter Bootstrap CSS | |
# gem 'twitter-bootstrap-rails' | |
# gem 'twitter-bootstrap-rails', :git => "git://github.com/seyhunak/twitter-bootstrap-rails.git", :branch => "static" | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer' | |
gem 'uglifier', '>= 1.0.3' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment