12

For a number of web-applications I need something like Capistrano to automate deployment. I know Capistrano can be used to deploy non-ruby applications but I'm not familiar with Ruby, so I expect writing deployment configurations can be a bit of a pain.

So I was wondering, are there any alternatives to Capistrano written in either Perl of Lua?

Also, forgot to mention, the platform running the deployments is Windows (XP). So Capistrano is already more or less out of the question. Although I found out it can run with the MINGW32 Bash shell that comes with Git for Windows.

brian d foy
  • 129,424
  • 31
  • 207
  • 592
Htbaa
  • 2,319
  • 18
  • 28
  • 2
    Just learn Ruby. It's not that hard and you don't need to know that much to use Capistrano. – brian d foy Dec 02 '09 at 20:52
  • I gave Capistrano a go but it doesn't integrate nicely on Windows. Maybe I should give it another try. – Htbaa Dec 02 '09 at 22:04
  • 2
    Gave it another go today but it's really troublesome on Windows. Also found a post of the (original?) developer stating he doesn't care if it runs on Windows or not. So Capistrano is out of the question for me since running a VPS only for deploying applications is not a viable solution at the moment. – Htbaa Dec 03 '09 at 11:15

2 Answers2

12

Not sure there is an exact Perl "clone" of Capistrano.

However on CPAN there are these Make / Rake like tools:

And these SSH tools:

So combination of these should fit the bill.

PS. Regarding your update - Net::SSH::Perl maybe useful if you don't have SSH installed on machine (this is pure Perl SSH implementation).

Community
  • 1
  • 1
draegtun
  • 22,441
  • 5
  • 48
  • 71
  • 1
    Thanks. Looks like I can create something usable with App::PPBuild and Net::SSH (or Net::SSH::Perl). A nice feature about Capistrano is that you can manage multiple servers at the same time. Although cool, it's not a feature I need now or in the future. App::PPBuild is no Capistrano so I'll let this one open for a bit longer before clicking the answered button. Hoping that a full fledged solution is available. – Htbaa Dec 02 '09 at 13:22
  • 1
    Net::SSH::Perl just hangs on the command line in Windows. Tried installing it with cpan and ppm but once I try to setup a connection it just hangs. – Htbaa Dec 03 '09 at 07:45
  • Net::SSH::Perl works here for me (on Mac though)... though it wasn't without its hiccups! If you still having problems with it then might be best to post a new question. Alternatively you may find installing SSH and using one of the other modules a better option. – draegtun Dec 04 '09 at 09:23
  • 1
    Although I stated above a VPS wouldn't a viable solution for us it is the way we're going now anyway (we've got some server resources left). So I'll be running Capistrano and there's no longer a need for an alternative. – Htbaa Dec 04 '09 at 11:08
  • 2
    These days a viable Perl alternative for Capistrano does exist in the form of Rex (http://rexify.org). – Htbaa Jan 26 '13 at 22:23
  • @Htbaa Yep. I have mentioned Rex in another SO answer. I should have updated it here long ago but I won't now that `Olivier D` answer covers Rex. See `Is there anything like Fabric for Perl?` http://stackoverflow.com/questions/7281836/is-there-anything-like-fabric-for-perl/7288678#7288678 – draegtun May 23 '14 at 16:27
8

The Perl alternative is Rex. And it has way more features than capistrano.

odc
  • 259
  • 2
  • 5