Talk is cheap, show me the code
I’m sure you’ve heard a lot about capistrano. It’s a very cool and handy tool. But sometime, you might not be able to meet its requirement. You have to have Ruby, and of course shell access. Well, I’m a geek trapped in the 1.0 age. You must believe me if I told you: I don’t have any shell access on my hosting provider. But I want Capistrano. For God sake, stop crying! Here some lines of PHP for your capistrano need:
// Neofreko's capistrano ![]()
$date = date('Ymd');
@system("wget --mirror -nH --cut-dirs=3 -Psvn$date -o log$date --http-user meoncapistrano --http-password meoncapistrano http://trac.cz/svn/meprojectrocks/trunk");
// make link
@system("ln -s -f svn$date current");
// remove index.html
@system("rm -f current/index.html");
?>
You know you can do more with Phing, though it will be less readable than Ruby syntax :D.
What did I gain? Well, obviously, compared to doing local svn export and manually push the files via ftp, this one run blazingly faster! What can I say, it is wget-ing from ‘backbone’ to ‘backbone’. My local-to-live-server line just won’t cut it :)).
PS:
OK Rail-ers, move on, I’m not playing troll here
Powered by ScribeFire.
Sphere: Related Content
This section gives me most headache. But experience told me that this blog mostly contains personal ramblings related to daily life, open source, and web 2.0. Recently, it turns out to be an idea-box where you can found ideas you can execute in your new startup ;). My ideas and opinions are not bullet proof and never intended to be one way stream. Kindly participate to improve your and my perspective regarding any particular post. Welcome aboard and enjoy your stay
Hendy Irawan
August 22nd, 2007 at 3:58 pm
You are truly a brilliant developer.
I wasn’t really sure about backbone-to-backbone though… If you run it in your local PC, shouldn’t it be downloading the stuff into your own computer? (probably you mean run that script in your server)
Not all [shared] hosting providers have Ruby, but most have shell access, even the free ones. And I won’t agree if shell access is considered web 2.0 as the technology is probably (hyperbolically) older than myself.
In my view, technology (”machines”) should make us (”humans”) easier to do hard stuff, not to enable us to do easy stuff the hard way.
Thank you for linking to my site.
[Reply]
Akhmad Fathonih
August 22nd, 2007 at 4:23 pm
@Hendy Irawan
Haha, thanks a bunch dude. I’m all flaterred
Yep, above script should ahve been run in the live server. I forgot to mention it in my post :D.
Hehehe, shell access is absolutely not a 2.0 technology. But hey, how on earth a geek doesn’t have any shell access?!
Isn’t it the fact? That technology has enable Joe user to do easy stuff the hard way. Joe can upload his pages with normal ftp, in peace. But Joe wants Capistrano. And it’s hard because someone has to code the Capistrano for Joe
[Reply]
University Update - Clemson University - PHP Capistrano-like Deployment Tool
August 22nd, 2007 at 4:46 pm
[...] Wake Forest University PHP Capistrano-like Deployment Tool » This Summary is from an article posted at Geek Building The Bridge Part 2 on Wednesday, August 22, 2007 I’m sure you’ve heard a lot about capistrano. It’s a very cool and handy tool. But sometime, you might not be able to meet its requirement. You have to have Ruby, and of course shell access. Well, I’m a geek trapped in the 1.0 age. You must believe me if I told you: I don’t have any shell access on my hosting provider. But I want Capistrano Summary Provided by Technorati.comView Original Article at Geek Building The Bridge Part 2 » 10 Most Recent News Articles About Clemson University [...]
blogger
August 24th, 2007 at 3:48 pm
niche blog. bloggroll please with http://software-komputer.blogspot.com — blog abaut home made herbal medication recipe, i wish it usefull for your reader, thanks
[Reply]