Skip to content

Instantly share code, notes, and snippets.

@cblunt
Last active September 30, 2015 19:48
Show Gist options
  • Save cblunt/1853175 to your computer and use it in GitHub Desktop.
Save cblunt/1853175 to your computer and use it in GitHub Desktop.
# config/initializers/airbrake.rb
Airbrake.configure do |config|
config.host = 'exceptions.codebasehq.com'
config.api_key = 'api_key'
end
# 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]',
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
# config/environments/development.rb
RailsApp::Application.configure do
#...
# Allow Better Errors through Vagrant box
BetterErrors::Middleware.allow_ip! "127.0.0.1"# Change to your private virtual box IP address to allow BetterErrors
end
source 'https://rubygems.org'
gem 'rails', '~> 4.0.0'
# Gems for Rails 4 upgrade compatibility
# gem 'protected_attributes'
# gem 'rails-observers'
# gem 'actionpack-action_caching'
# gem 'activeresource', require: 'active_resource'
#gem 'pg'
gem 'mysql2'
gem 'jquery-rails'
gem 'json'
gem 'slim-rails'
# Form rendering helpers
gem 'simple_form'
# Easy dynamic nested forms using jQuery, works with SimpleForm / Formtastic
gem 'cocoon'
# 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
# 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
# Use spork for quick spec runs
gem 'spork-rails', :github => 'sporkrb/spork-rails', require: false, group: :development
# Disable log messages for asset pipeline (clean up logs)
gem 'disable_assets_logger', group: :development
# Enable BetterErrors debug screen (and inspection)
gem 'better_errors', '~> 0.9.0', group: :development
gem 'binding_of_caller', '~> 0.7.2', group: :development
group :development, :test do
gem 'awesome_print'
# Deployment
gem 'capistrano', require: false
gem 'capistrano-maintenance', require: false
gem 'capistrano-rbenv', require: false
gem 'guard-rspec', :require => false
gem 'fabrication'
gem 'faker'
gem 'shoulda-matchers'
gem 'rspec-rails', '~> 2.13.2'
gem 'yard', :require => false
# gem 'mocha'
# gem 'steak' # includes rspec and capybara
# gem 'simplecov', : require => false # Ruby 1.9
# gem 'rmre', '~> 0.0.5', require: false # Gem for generating models from legacy database schema
end
# Asset gems
gem 'sass-rails', '~> 4.0.0'
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.3.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment