Switch to nginx

Every now and then I hear the question: how can I replace apache? It eats too much memory.

That’s true. We started web hosting in small scale. Now we have much more performant machines, even if we’re still in the same scale. And then, we realized we don’t need this amount of CPU, that amount of RAM, but we still need our stuff separated. We started using VPS.

My usual wise but entirely unhelpful answer was like use nginx. Being an apache user, I couldn’t even tell whether it will fit in.

Hell, it’s about time. Continue reading

Make deployments even more robust

I’m sad to say, but me and inploy parted ways. I just need even more robustness in deployment. I don’t want to get the whole deployment screwed up just because of the git repo cannot be fast-forwarded. I don’t want to screw my deployment on any issue.

I ended up returning to Vlad. The journey to Inploy had it’s advantage though. Continue reading

Make rails3 deployment more robust with inploy

I never touched Capistrano, it looked like a rake spinoff. I started using Vlad instead (my post in Hungarian), but at some point, it started to be very frustrating. Deployment took too long, deployment versions lost their meaning (you won’t remember which was the last one which worked well), and all these small things led me to Inploy by Diego Carrion. Continue reading

Add form fragments dynamically

A new feature of Rails is the ability of manipulating related models.  While it’s great, dynamically adding / removing nested model entries is not an established way.  However, it’s already solved by Eloy Duran.  His method was for Prototype and default form builder, which had to be converted to HAML, JQuery and Formtastic one for me.  Here’s how. Continue reading

Tárgyalás a bérgyilkosokkal

Lassan bocsánatot kell kérjek a mindent magyarítás miatti szenzációhajhász címek miatt :) Szóval az úgy kezdődött, hogy a pet projectemet egyre több és több dologgal szeretném felcicomázni, szeretném belakni az új környezetet, és eközben akadtam rá a Capistrano bonyolultságával szembehelyezkedő Vlad-ra.

Persze nézem a forrást, és látom, hogy egyszerűcske a dolog, szögletes az a karika, de aztán belenéztem a capistrano forrásába, hogy némi fícsört vigyek a vlad-ba, és azt kell mondjam, akkor már a bérgyilkos szakasz.  Nem teljesen egyértelmű a használata, de azért jól ki lehet jönni vele. Continue reading