Working on a project these days where I work with Cucumber and Capybara, I had to test the contents of filed downloaded from the application, the downloads were being sent using “send_file” and chrome was adding them directly to the user Downloads folder, and the capybara tests had no access to the file contents after…
Author: Rodrigo Urubatan
When Kubernetes is not the right choice?
As with anything in the technology field, there is no one size fits all solution… And even kubernetes solving a big amount of problems you might have when exposing and scaling your application, it also brings some problems that you need to weight before deciding if this is the right technology for you or not….
Rails from “zero” to kubernetes – ingress reverse proxy
Following up on the ‘Rails from “zero” to kubernetes’ series, we’ll see today how to expose your service to the internet, since I think we all agree that mapping directly the port of your rails app to the internet is not a really wise choice.
Kubernetes has a “simple but works” solution called ingress, ingress is an HTTP proxy, it will work as a reverse proxy for HTTP and HTTPS for any service that exposes one one port.
Rails from “zero” to kubernetes – horizontal autoscaling
Following up on our previous post, we’ll now make kubernetes work for us, and automatically scale our application.
One of the really cool kubernetes features is the ability to automatically span new pods for your deployment based on the CPU usage of your pods. This is kinda simple, but very useful.
Rails from “zero” to kubernetes – a service to access your pod
In the previous post, we created our first kubernetes pod, but one important part is missing, it is not possible to access that application, we’ll solve this with a service now….
Rails from “zero” to kubernetes – first pod
Last year I wrote about using docker-compose to have a test/development environment similar to your production environment (you can check the post here) My environment kept growing and becoming more complex, and I started using docker swarm to deploy the applications, and after some time I started using kubernetes, I’ve learnt something about kubernetes in…
ActiveRecord Migration UI gem
Really cool gem that allows you to run your pending migrations from the comfort of your browser.
Beware of Date.yesterday on your code (A timezone history)
This post is the write-up of how I fixed a production problem that happened a few minutes ago, and can probably save some time for you too, so read this and remember for your next code that deals with time
How to create a request scope for your rails application
Some time ago I missed one of the cool features from the time I worked with JavaEE, that was a request scope for some variables.
I know the instance variables on controllers do a great job simulating it, but I needed to access context in a completely different part of the application, that wasn’t always called from controllers, variables that should be scoped to that request.
So I thought, I could create something like that for my rails app.
Random collection of Git Tips and Tricks
This post will not be about Ruby, but about another tool we use on a daily basis! It also doesn’t have a “story”, it is a collection of random Git tips that helped me in the recent past that I do not want to forget about 😀 And just as a note, this is far…