Skip to content

Instantly share code, notes, and snippets.

@bld2104
Created March 2, 2016 03:27
Show Gist options
  • Save bld2104/9cec94e099a43dbd2db0 to your computer and use it in GitHub Desktop.
Save bld2104/9cec94e099a43dbd2db0 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.2'
gem 'bootstrap-sass'
gem 'sass-rails', '5.0.2'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
gem 'jquery-turbolinks'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'aws-sdk'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
gem 'spree', '3.0.5'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_backend'
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
2016-03-02T03:19:27.931693+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-02T03:19:27.931694+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-02T03:19:27.931700+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-02T03:19:27.931697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
2016-03-02T03:19:27.931695+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-02T03:19:27.931701+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:19:27.931704+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2016-03-02T03:19:27.931703+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-02T03:19:27.931707+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2016-03-02T03:19:27.931703+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2016-03-02T03:19:27.931706+00:00 app[web.1]: from /app/config.ru:in `new'
2016-03-02T03:19:27.931707+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-03-02T03:19:27.931708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2016-03-02T03:19:27.931734+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2016-03-02T03:19:27.931734+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/server.rb:61:in `app'
2016-03-02T03:19:27.931731+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2016-03-02T03:19:27.931732+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2016-03-02T03:19:27.931734+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2016-03-02T03:19:27.931736+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/server.rb:80:in `start'
2016-03-02T03:19:27.931735+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2016-03-02T03:19:27.931739+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
2016-03-02T03:19:27.931743+00:00 app[web.1]: from bin/rails:9:in `require'
2016-03-02T03:19:27.931737+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2016-03-02T03:19:27.931740+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `server'
2016-03-02T03:19:27.931742+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-02T03:19:27.931744+00:00 app[web.1]: from bin/rails:9:in `<main>'
2016-03-02T03:19:27.931664+00:00 app[web.1]: /app/app/models/bluepay.rb:29:in `<top (required)>': uninitialized constant BluePay (NameError)
2016-03-02T03:19:27.931685+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:346:in `eager_load!'
2016-03-02T03:19:27.931696+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-02T03:19:27.931701+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:19:27.931741+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2016-03-02T03:19:28.509843+00:00 heroku[web.1]: Process exited with status 1
2016-03-02T03:19:28.522152+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-02T03:19:29.323911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-sea-34590.herokuapp.com request_id=09b055a5-a0a0-4b35-b5e6-fc94c48d4e6d fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
2016-03-02T03:19:29.719714+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intense-sea-34590.herokuapp.com request_id=a7057206-45bc-42ec-922a-d4304c83165c fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
2016-03-02T03:22:58.085960+00:00 heroku[api]: Deploy 8ed64e0 by [email protected]
2016-03-02T03:22:58.085960+00:00 heroku[api]: Release v10 created by [email protected]
2016-03-02T03:22:58.236950+00:00 heroku[slug-compiler]: Slug compilation started
2016-03-02T03:22:58.236958+00:00 heroku[slug-compiler]: Slug compilation finished
2016-03-02T03:22:58.376644+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-02T03:23:03.423053+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 23418 -e production`
2016-03-02T03:23:09.076856+00:00 app[web.1]: => Booting WEBrick
2016-03-02T03:23:09.076868+00:00 app[web.1]: => Rails 4.2.2 application starting in production on http://0.0.0.0:23418
2016-03-02T03:23:09.076874+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-03-02T03:23:09.076880+00:00 app[web.1]: Exiting
2016-03-02T03:23:09.076874+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-03-02T03:23:09.076890+00:00 app[web.1]: /app/app/models/bluepay.rb:29:in `<top (required)>': uninitialized constant BluePay (NameError)
2016-03-02T03:23:09.076890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:23:09.076891+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:23:09.076895+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2016-03-02T03:23:09.076905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:469:in `each'
2016-03-02T03:23:09.076906+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:469:in `eager_load!'
2016-03-02T03:23:09.076896+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:471:in `each'
2016-03-02T03:23:09.076904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:471:in `block in eager_load!'
2016-03-02T03:23:09.076906+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/engine.rb:346:in `eager_load!'
2016-03-02T03:23:09.076907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/application/finisher.rb:56:in `each'
2016-03-02T03:23:09.076907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2016-03-02T03:23:09.076908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'
2016-03-02T03:23:09.076908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'
2016-03-02T03:23:09.076909+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-03-02T03:23:09.076909+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-03-02T03:23:09.076910+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-03-02T03:23:09.076910+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-03-02T03:23:09.076911+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-03-02T03:23:09.076911+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-02T03:23:09.076912+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-03-02T03:23:09.076912+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-02T03:23:09.076913+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-02T03:23:09.076914+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-02T03:23:09.076914+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'
2016-03-02T03:23:09.076915+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
2016-03-02T03:23:09.076915+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-02T03:23:09.076919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:23:09.076919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2016-03-02T03:23:09.076925+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-02T03:23:09.076926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2016-03-02T03:23:09.076926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2016-03-02T03:23:09.076926+00:00 app[web.1]: from /app/config.ru:in `new'
2016-03-02T03:23:09.076927+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-03-02T03:23:09.076927+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2016-03-02T03:23:09.076927+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2016-03-02T03:23:09.076928+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2016-03-02T03:23:09.076929+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2016-03-02T03:23:09.076930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/server.rb:61:in `app'
2016-03-02T03:23:09.076930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2016-03-02T03:23:09.076930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2016-03-02T03:23:09.076931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2016-03-02T03:23:09.076931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/server.rb:80:in `start'
2016-03-02T03:23:09.076931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2016-03-02T03:23:09.076932+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
2016-03-02T03:23:09.076934+00:00 app[web.1]: from bin/rails:9:in `require'
2016-03-02T03:23:09.076933+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `server'
2016-03-02T03:23:09.076933+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2016-03-02T03:23:09.076934+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-02T03:23:09.076935+00:00 app[web.1]: from bin/rails:9:in `<main>'
2016-03-02T03:23:09.692190+00:00 heroku[web.1]: Process exited with status 1
2016-03-02T03:23:09.710101+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-02T03:24:01.334724+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-sea-34590.herokuapp.com request_id=7fd2d80c-6dfe-4204-8af2-64d84530f079 fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
2016-03-02T03:24:01.677431+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intense-sea-34590.herokuapp.com request_id=d1773dfe-4369-4d40-bafe-afce95f13126 fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
2016-03-02T03:24:02.780117+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-sea-34590.herokuapp.com request_id=7b155495-4a1e-4d84-9368-d32057c03814 fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
2016-03-02T03:24:02.940723+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intense-sea-34590.herokuapp.com request_id=eef05ef3-a455-4f7f-9546-c77b642151f9 fwd="100.14.176.16" dyno= connect= service= status=503 bytes=
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# Add `rack-cache` to your Gemfile before enabling this.
# For large-scale production use, consider using a caching reverse proxy like
# NGINX, varnish or squid.
# config.action_dispatch.rack_cache = true
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
config.assets.digest = true
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = :debug
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production.
# config.cache_store = :mem_cache_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
# config/environments/production.rb
config.paperclip_defaults = {
:storage => :s3,
:s3_credentials => {
:bucket => ENV['S3_BUCKET_NAME'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
}
end
# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# Note: If a preference is set here it will be stored within the cache & database upon initialization.
# Just removing an entry from this initializer will not make the preference value go away.
# Instead you must either set a new value or remove entry, clear cache, and remove database entry.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
# Example:
# Uncomment to stop tracking inventory levels in the application
# config.track_inventory_levels = false
end
Spree.user_class = "Spree::User"
attachment_config = {
s3_credentials: {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
bucket: ENV['S3_BUCKET_NAME']
},
storage: :s3,
s3_headers: { "Cache-Control" => "max-age=31557600" },
s3_protocol: "https",
bucket: ENV['S3_BUCKET_NAME'],
url: ":s3_domain_url",
styles: {
mini: "48x48>",
small: "100x100>",
product: "240x240>",
large: "600x600>"
},
path: "/:class/:id/:style/:basename.:extension",
default_url: "/:class/:id/:style/:basename.:extension",
default_style: "product"
}
attachment_config.each do |key, value|
Spree::Image.attachment_definitions[:attachment][key.to_sym] = value
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment