jfahrer / dockerizing_rails Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When running this command rspec fails. I think this is unintentional.
|23:30:29| jh |preparation ✗| → docker container run -it your_docker_id/rails_app:v1 rspec
...........F.............
Failures:
1) ProgressUpdateJob#peform sets the progress to 100 if there are more read pages than pages
Failure/Error: expect { described_class.new.perform(book.id) }.to change { book.reload.progress }.from(nil).to(100)
expected `book.reload.progress` to have changed to 100, but is now 115
# ./spec/jobs/progress_update_job_spec.rb:18:in `block (3 levels) in <main>'
Finished in 1.46 seconds (files took 2.65 seconds to load)
25 examples, 1 failure
Failed examples:
rspec ./spec/jobs/progress_update_job_spec.rb:13 # ProgressUpdateJob#peform sets the progress to 100 if there are more read pages than pages
After every command I'm running locally, since I don't have ruby 2.5.3 installed, I'm getting this message:
rbenv: version `2.5.3' is not installed
Maybe we can just do echo '2.5.3' > .ruby-version
as part of the Dockerfile
so it doesn't need to be installed locally.
MacBook-Pro-5 in ~/workspace/dockerizing_rails ❤️
|23:36:04| jh |preparation ✗| → docker container run -p 3000:3000 your_docker_id/rails_app:v1 rails s
I don't get any output, and when I try to navigate to localhost:3000 I get a The connection was reset
in firefox.
Let's go through this together!
When I ctrl+c I get a bunch of output that looks like the buffer wasn't flushing.
After running this command in assignment 3, see the error message:
MacBook-Pro-5 in ~/workspace/dockerizing_rails ❤️
|23:28:16| jh |preparation ✗| → docker container run -it your_docker_id/rails_app:v1
Running via Spring preloader in process 27
Loading development environment (Rails 5.2.3)
irb(main):001:0> Book.create!(title: "Rails With Docker", pages: 312)
Traceback (most recent call last):
1: from (irb):1
ActiveRecord::StatementInvalid (Could not find table 'books')
irb(main):002:0>
Say, for example, that I was a docker wizard and I wanted more to learn after this workshop, can you give me some references on where to go?
I'd like some follow-up work after finishing this workshop to learn more on my own time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.