Easiest deployment with git and ssh

Роман Лапин — Mar 11, 2012    development, workflow

To be honest, I did not care much about deployment through my first years as a web-developer. It happened so that neither projects were small and it was not a problem to just put them using ftp-client or there were always another guys who was in response for that part of the process. Later, situation changed and I started to look into different tools and technics to put projects online and update them later. When we started Evercode Lab last year this question became even more important as we became responsible for the whole process.

So we started to pay our infrastructure debt and started to use such tools as capistrano and phing to satisfy our needs. And in general, they work quite good for us now. Not perfect, but we are continuously improving the process and it’s details.

But last week I found deployment solution that appeared to me as simple as powerfull. Yet, of course, it’s not suitable for every situation. It is very straighforward and can be updated in some details for concrete needs.

Look, here it is:

You can see detailed explanations of each part in the original post. Besides, everything here is quite obvious from the first glance.

Sure, you can put whole command in one executable file and add some more additional commands and run it just by typing something like $ ./deploy.sh. You can integrate it in other parts of your process.

This deployment solution is sort of meditative for me. It is really fast, easy and clear to understand it every detail.

Feel free to comment here if you know solutions like this or have some ideas on how to make it even better.

- comments powered by Disqus -

Evercode Lab