ok,
I did use capistrano, and it would eventually stop updating the code due
to some obscure problem. My dumb bash script never disappointed me.
I see the reason for you not in favor of using Capistrano. You sounds
frustrated to have not been able to resolve the issue you had have
with your earlier Cap implementation.
I am not saying anything against you why to go or why not to go for
Capistrano.
And I really don’t know if you have anything personal against
JamisBuck(creator of Capistrano) and/or Ruby programming
language
… to count them a reason to not to use it apart from
considering the following advantages as compared to the script you
provided…
Your Script:
Can deploy: Yes
Keeps releases: No
Can Rollback: No
Does it know what Rollback is: No
Can just restart the server without updating code: No
Can perform additional server task(s) after/before code updation: No
Is it organized: No
Capistrano:
Can deploy: Yes
Keeps releases: Yes
Can Rollback: Yes
Does it know what Rollback is: Very well, if your latest deploy fails
and crashes the server (not a big deal, happens to lots of ninjas),
you can just fire one command “cap rollback” to bring the live server
quickly to previously functional state.
Can just restart the server without updating code: Yes
Can perform additional server task(s) after/before code updation: Yes
Is it organized: Yes, the ruby code is placed centrally on your system
as a Ruby gem, and for every application you just need to mention the
repository address, server address etc. in a configuration file.
Guys, I would just like to say, it’s really better to spend some time
to get comfy with Capistrano and/or any other automated deployment
tool instead of pumping yourself to get the different scripts ready
for all server managerial work.
Needless to mention there are some other really good options available
which can be used in place of Capistrano.
e.g.
- Vlad Ruby Hit Squad - Programacion, marketing y mucho ruby on rails
- Moonshine (and Shadow Puppet)
http://blog.railsmachine.com/articles/2009/01/16/moonshine-configuration-management-and-deployment/
Moonshine and Shadow Puppet takes the server management and deployment
to a totally different level which has not even been defined by the
Capistrano… so if you really need an advanced system administration
for Rails application’s server, go for Moonshine … but undoubtedly
it needs a certain level skills to use it up to the mark and might be
a bit difficult for the newbs.
But if you are comfortable with Capistrano and/or Vlad you can easily
look in near future to get ready for trying something awesome like
Moonshine.
So, for the beginners, I would say Capistrano could be very good
option to start with the deployments and build you understanding how
the automated deployment tools can be so very helpful in doing quick
server management(and deployment) jobs.
regards,
Sur
http://crimson9.com