Skip to content

Instantly share code, notes, and snippets.

source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
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'
@bld2104
bld2104 / logs
Created March 2, 2016 14:26
updated heroku logs march 2 9-25 am
2016-03-02T09:09:37.643100+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-02T09:09:37.643101+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-02T09:09:37.643102+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-02T09:09:37.643102+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-02T09:09:37.643107+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-02T09:09:37.643102+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-02T09:09:37.643108+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-02T09:09:37.643109+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-02T09:09:37.6431
@bld2104
bld2104 / herok-log-tail-from-console
Created March 4, 2016 20:18
heroku logs tail from console
bld2104:~/workspace (master) $ heroku logs -t
2016-03-02T14:35:47.171753+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/callbacks.rb:505:in `call'
2016-03-02T14:35:47.171781+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2016-03-02T14:35:47.171782+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `block in instrument'
2016-03-02T14:35:47.171783+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2016-03-02T14:35:47.171783+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `instrument'
2016-03-02T14:35:47.171784+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2016-03-02T14:35:4
@bld2104
bld2104 / sfunique2 deployment
Created March 7, 2016 17:12
sfunique2 deployment
bld2104:~/workspace/sfunique2 (master) $ git push heroku master
Counting objects: 469, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (419/419), done.
Writing objects: 100% (437/437), 41.21 MiB | 586.00 KiB/s, done.
Total 437 (delta 69), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/ruby
2016-03-07T17:43:16.401715+00:00 heroku[web.1]: Restarting
2016-03-07T17:43:16.402598+00:00 heroku[web.1]: State changed from up to starting
2016-03-07T17:43:20.653229+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2016-03-07T17:43:21.722971+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 3354 -e production`
2016-03-07T17:43:21.980186+00:00 app[web.1]: [2016-03-07 17:43:21] FATAL SignalException: SIGTERM
2016-03-07T17:43:21.980247+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:174:in `select'
2016-03-07T17:43:21.980249+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:174:in `block in start'
2016-03-07T17:43:21.980249+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:32:in `start'
2016-03-07T17:43:21.980250+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:162:in `start'
2016-03-07T17:43:21.980251+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib
2016-03-07T21:17:19.770601+00:00 app[web.1]: Started PATCH "/shop/cart" for 100.14.176.16 at 2016-03-07 21:17:19 +0000
2016-03-07T21:17:19.775533+00:00 app[web.1]: Processing by Spree::OrdersController#update as HTML
2016-03-07T21:17:19.776473+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"LqOy73UXw5o/rA7AxJXCQ9PdFKxDQq0+IGUSmIBvW6GidCEu6iE9mlRJlWGknZ2fO119shpe8Bq3Xd6+7m2qzw==", "order"=>{"line_items_attributes"=>{"0"=>{"quantity"=>"1", "id"=>"1"}}}, "checkout"=>""}
2016-03-07T21:17:19.782867+00:00 app[web.1]: Spree::Preference Load (3.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/frontend_configuration/locale"]]
2016-03-07T21:17:19.790462+00:00 app[web.1]: Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 ORDER BY "spree_users"."id" ASC LIMIT 1 [["id", 1]]
2016-03-07T21:17:19.794664+00:00 app[web.1]: Spree::Store Loa
@bld2104
bld2104 / logs when i try to add an image
Last active March 9, 2016 01:40
logs when i try to add an image with amazon installed
2016-03-09T01:39:25.345484+00:00 heroku[router]: at=info method=GET path="/shop/admin" host=sweetfields.herokuapp.com request_id=fc34ac37-8da0-4666-b14a-358eee24591f fwd="100.14.176.16" dyno=web.1 connect=1ms service=22ms status=302 bytes=1303
2016-03-09T01:39:25.336840+00:00 app[web.1]: Started GET "/shop/admin" for 100.14.176.16 at 2016-03-09 01:39:25 +0000
2016-03-09T01:39:25.339928+00:00 app[web.1]: Processing by Spree::Admin::RootController#index as HTML
2016-03-09T01:39:25.343118+00:00 app[web.1]: Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/backend_configuration/locale"]]
2016-03-09T01:39:25.346028+00:00 app[web.1]: Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 ORDER BY "spree_users"."id" ASC LIMIT 1 [["id", 1]]
2016-03-09T01:39:25.347302+00:00 app[web.1]: Redirected to https://sweetfields.herokuapp.com/
2016-03-09T18:43:55.392870+00:00 app[web.1]: Started POST "/shop/admin/products/large-csa-box/images" for 100.14.176.16 at 2016-03-09 18:43:55 +0000
2016-03-09T18:43:55.394667+00:00 app[web.1]: Processing by Spree::Admin::ImagesController#create as HTML
2016-03-09T18:43:55.394731+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"1SW154/zj2YpEFHv2+4nUR1pUHygLikN+cnup8FmtRxVNlPdu+MLjIVjg6ReQ4yVZuTTOCh2pbuRoQ0UxX69zw==", "image"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f766033da00 @tempfile=#<Tempfile:/tmp/RackMultipart20160309-3-10u1w1k.jpg>, @original_filename="csa-box-large.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"image[attachment]\"; filename=\"csa-box-large.jpg\"\r\nContent-Type: image/jpeg\r\n">, "viewable_id"=>"1", "alt"=>""}, "button"=>"", "product_id"=>"large-csa-box"}
2016-03-09T18:43:55.396535+00:00 app[web.1]: Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences".
bld2104:~/workspace/sfunique2 (master) $ git push heroku master
Counting objects: 10, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 533 bytes | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/ruby