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
card_suits = ["Hearts", "Spades", "Clubs", "Diamonds"] | |
card_values = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace"] | |
deck = [] | |
# Loop over each suit | |
card_suits.each do |suit| | |
card_values.each do |card| | |
deck << [suit, card] | |
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
2018-05-29T13:22:28.413954+00:00 app[web.1]: => Run `rails server -h` for more startup options | |
2018-05-29T13:22:28.413955+00:00 app[web.1]: Exiting | |
2018-05-29T13:22:32.027027+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 55708 -e production` | |
2018-05-29T13:22:35.949910+00:00 heroku[web.1]: State changed from starting to crashed | |
2018-05-29T13:22:35.821969+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activestorage-5.2.0/app/models/active_storage/blob/representable.rb:7:in `block in <module:Representable>' | |
2018-05-29T13:22:35.821935+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `has_one_attached' for #<Class:0x00000000055e6fa0> (NoMethodError) | |
2018-05-29T13:22:35.821977+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/concern.rb:122:in `class_eval' | |
2018-05-29T13:22:35.821987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5 |
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
2018-05-29T13:22:28.413954+00:00 app[web.1]: => Run `rails server -h` for more startup options | |
2018-05-29T13:22:28.413955+00:00 app[web.1]: Exiting | |
2018-05-29T13:22:32.027027+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 55708 -e production` | |
2018-05-29T13:22:35.949910+00:00 heroku[web.1]: State changed from starting to crashed | |
2018-05-29T13:22:35.821969+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activestorage-5.2.0/app/models/active_storage/blob/representable.rb:7:in `block in <module:Representable>' | |
2018-05-29T13:22:35.821935+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `has_one_attached' for #<Class:0x00000000055e6fa0> (NoMethodError) | |
2018-05-29T13:22:35.821977+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/concern.rb:122:in `class_eval' | |
2018-05-29T13:22:35.821987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5 |
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
Juliuss-MacBook-Pro:sample_app juliusosagiede$ RAILS_ENV=production rails s | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:90: warning: already initialized constant FileUtils::VERSION | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.1.0/lib/fileutils.rb:92: warning: previous definition of VERSION was here | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1188: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.1.0/lib/fileutils.rb:1267: warning: previous definition of S_IF_DOOR was here | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1446: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM | |
/Users/juliusosagiede/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.1.0/lib/fileutils.rb:1541: warning: previous definition of DIRECTORY_TERM was here | |
/Users/juliusosagiede/.rbenv/versions/2.5. |
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
Juliuss-MacBook-Pro:sample_app juliusosagiede$ heroku logs | |
2018-06-04T19:58:51.712325+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-ravine-35505.herokuapp.com request_id=bda5d86f-f8e7-4f28-9507-22694bab1bc0 fwd="66.234.246.34" dyno= connect= service= status=503 bytes= protocol=https | |
2018-06-04T19:58:54.033918+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-ravine-35505.herokuapp.com request_id=cb1c3933-b079-4b90-a664-fbcadcb387cc fwd="66.234.246.34" dyno= connect= service= status=503 bytes= protocol=https | |
2018-06-04T19:59:03.391890+00:00 heroku[web.1]: State changed from crashed to starting | |
2018-06-04T19:59:08.256629+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 21875 -e production` | |
2018-06-04T19:59:15.960613+00:00 heroku[web.1]: Process exited with status 1 | |
2018-06-04T19:59:15.824046+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.5.0/gems/activestorage-5.2.0/app/models/active_storage/b |
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
Juliuss-MacBook-Pro:sample_app juliusosagiede$ git heroku push master | |
git: 'heroku' is not a git command. See 'git --help'. | |
The most similar command is | |
checkout | |
Juliuss-MacBook-Pro:sample_app juliusosagiede$ git push heroku master | |
Counting objects: 5, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (5/5), done. | |
Writing objects: 100% (5/5), 485 bytes | 485.00 KiB/s, done. |
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
Juliuss-MacBook-Pro:sample_app juliusosagiede$ heroku run rails console | |
Running rails console on ⬢ rocky-ravine-35505... up, run.9710 (Free) | |
Traceback (most recent call last): | |
73: from /app/bin/rails:9:in `<main>' | |
72: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require' | |
71: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency' | |
70: from /app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require' | |
69: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require' | |
68: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi' | |
67: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register' |
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
# frozen_string_literal: true | |
module ActiveRecord | |
module DynamicMatchers #:nodoc: | |
private | |
def respond_to_missing?(name, _) | |
if self == Base | |
super | |
else | |
match = Method.match(self, name) |
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
Juliuss-MacBook-Pro:sample_app juliusosagiede$ heroku logs | |
2018-06-11T18:47:54.780939+00:00 app[web.1]: => Rails 5.2.0 application starting in production | |
2018-06-11T18:47:54.780940+00:00 app[web.1]: => Run `rails server -h` for more startup options | |
2018-06-11T18:47:54.780942+00:00 app[web.1]: Exiting | |
2018-06-11T18:47:54.780935+00:00 app[web.1]: => Booting Puma | |
2018-06-11T18:47:54.834693+00:00 heroku[web.1]: Process exited with status 1 | |
2018-06-11T18:47:55.595061+00:00 heroku[web.1]: State changed from starting to crashed | |
2018-06-12T00:15:32.296156+00:00 heroku[web.1]: State changed from crashed to starting | |
2018-06-12T00:15:35.624962+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 24655 -e production` | |
2018-06-12T00:15:39.320330+00:00 heroku[web.1]: State changed from starting to crashed |