Created
April 17, 2015 15:25
-
-
Save sdilshod/b38f1663c99304bdbdbf to your computer and use it in GitHub Desktop.
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| | |
if Rails.env.production? | |
CarrierWave::Uploader::Base.storage_engines = :file | |
elsif Rails.env.heroku_staging? | |
config.fog_provider = 'fog-aws' | |
config.fog_credentials = { | |
:provider => 'AWS', | |
:aws_access_key_id => 'AKIAIKID4I5C5W7NVF7A', | |
:aws_secret_access_key => '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', | |
} | |
config.fog_directory = 'stn-staging' | |
CarrierWave::Uploader::Base.storage_engines = :fog | |
end | |
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.12' | |
gem 'rack', '1.4.5' | |
gem 'rake', '10.0.3' | |
gem 'pg' | |
gem 'activerecord-postgres-hstore' | |
gem 'pg_search' | |
gem 'activerecord-postgres-array' | |
gem "twitter-bootstrap-rails" | |
gem 'inherited_resources' | |
gem 'has_scope' | |
gem 'devise' | |
gem 'cancan' | |
gem 'kaminari' | |
gem 'russian' | |
gem 'rmagick' | |
gem 'rack-cache', :require => 'rack/cache' | |
#gem 'dragonfly' | |
gem 'carrierwave', :github => 'jnicklas/carrierwave' | |
gem 'mini_magick' | |
gem 'geocoder' | |
gem 'activeadmin'#, :github => 'gregbell/active_admin' | |
gem 'nokogiri' | |
gem 'wicked' | |
gem 'haml-rails' | |
gem 'jquery-rails', '2.1.4' | |
gem 'zepto-rails', :github => 'frontfoot/zepto-rails' | |
gem 'ancestry' | |
gem 'ransack' | |
#gem 'sunspot_rails' | |
#gem 'sunspot_solr' | |
#gem 'sunspot_with_kaminari' | |
gem 'acts_as_commentable_with_threading' | |
gem 'meta-tags' | |
gem 'sitemap_generator' | |
gem 'paper_trail' | |
gem "friendly_id" | |
gem 'activemerchant' | |
gem 'state_machine' | |
gem 'excon' | |
gem 'enumerize' | |
gem 'redis' | |
gem 'rest_in_place' | |
gem "cocoon" | |
gem 'formtastic' | |
gem "rails-settings-cached" | |
gem 'auto_html' | |
gem 'exception_notification', '2.6.1' | |
#gem 'imperavi-rails', :github => 'Paxa/imperavi-rails', :ref => 'ec989856' | |
#gem 'imperavi-rails', :path => '../imperavi-rails' | |
gem 'ckeditor' | |
gem 'select2-rails' | |
gem 'squeel' | |
gem 'faker' | |
gem 'chosen-rails' | |
gem 'truncate_html' | |
gem "galetahub-simple_captcha", :require => "simple_captcha" | |
gem 'fog', require: "fog/aws/storage" | |
#gem 'fog-aws' | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'less-rails' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', :platforms => :ruby | |
gem 'uglifier', '>= 1.0.3' | |
gem 'therubyracer' | |
end | |
group :development, :test do | |
gem 'rspec-rails' | |
end | |
group :test do | |
gem 'factory_girl_rails' | |
gem 'shoulda-matchers' | |
gem 'database_cleaner' | |
end | |
group :development do | |
gem 'rvm-capistrano' | |
gem 'capistrano' | |
gem 'capistrano_colors' | |
gem 'capistrano-unicorn', :require => false | |
gem 'quiet_assets' | |
gem 'i18n_generators' | |
gem 'sextant' | |
gem 'awesome_print' | |
gem 'meta_request', '~> 0.3.4' | |
gem 'binding_of_caller' | |
gem 'better_errors' | |
gem 'pry-rails' | |
gem 'mailcatcher' | |
end | |
group :heroku_staging do | |
gem 'thin' | |
end | |
gem 'unicorn' | |
gem 'whenever' | |
gem 'airbrake' |
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
Vprok::Application.configure do | |
config.cache_classes = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
config.serve_static_assets = true | |
# Compress JavaScripts and CSS | |
config.assets.compress = true | |
# Don't fallback to assets pipeline if a precompiled asset is missed | |
config.assets.compile = true | |
config.assets.precompile += %w{active_admin.css active_admin/print.css active_admin.js redactor.css} | |
# Generate digests for assets URLs | |
config.assets.digest = true | |
config.action_controller.asset_host = "http://stn-staging.s3.amazonaws.com" | |
# 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 | |
# Send deprecation notices to registered listeners | |
config.active_support.deprecation = :notify | |
config.action_mailer.default_url_options = { :host => 'stn-staging.herokuapp.com' } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
address: "smtp.gmail.com", | |
port: 587, | |
authentication: "plain", | |
user_name: "[email protected]", | |
password: ENV['SMTPGMAIL_PASSWORD'], | |
enable_starttls_auto: true | |
} | |
config.action_mailer.raise_delivery_errors = true | |
# Log the query plan for queries taking more than this (works | |
# with SQLite, MySQL, and PostgreSQL) | |
# config.active_record.auto_explain_threshold_in_seconds = 0.5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment