Rack + Puma + Heroku

Recently I have been working on the company's website(Icalia Labs), due to its lack of optimization on images, javascripts and stylesheets, so I decided to change that.

The website was built using Grunt to automate some tasks, my surprise was, not much of those tasks were actually being used and what is worse, there was no easy way to deploy it. It was too 'crafty'.

The website is hosted on Heroku as a rack application. And although everything was 'fine', the website was evaluated really low on simple metrics, like minified assets, too many requests for resources on the same server and some other stuff.

When it comes to deploy, I love Heroku, it is just great! They have amazing documentation on almost everything, but what I couldn't find was to correctly set a decent configuration for the website using rack and puma.

Although the solution is fairly simple, it took me a while to figure it out how to put all the pieces together.