Issue with Radiant Extensions on Heroku…

April 26, 2009

Falling

Background

Recently, I’ve decided to work with Ruby a little more and I’ve been trying to wrap my head around a number of new things. I’m working to put together a series of posts that will detail my exploration but I ran into a nasty issue and wanted to get something up to help anyone else who falls into this little pit.

Setup

I have been using Heroku in my explorations and have come to truly dig their service. These guys know what the heck their doing and really make me feel like I do as well. Anyway, since I needed a CMS for the project I was working on, I grabbed Radiant and started playing. It worked quite well out of the box for me and was supported on Heroku (directions here) so I installed several of the extensions that I needed and pushed it up to Heroku.

Uh oh. No worky.

I pulled down the logs from Heroku, I sent emails to everyone I could think of, I Googled, I re-pushed (yes, I know that’s the definition of insanity), I even shook my fist at the bash shell but could not get it to work.

Resolution

Along the way, I came to find a couple of rather important pieces of info. Heroku doesn’t support Git on the server side (like git-wiki). And Git has sub-modules. These two important details, and the fact that I was unaware of the previously, is what lead to me to grab a copy of what was on the production server (the bundle command on Heroku) and dissect it. The extension directories were completely empty. Because of the sub-modules, Git wasn’t pushing them to Heroku and so the extensions weren’t loaded. Removing the sub-modules and then adding the files from the extensions, followed by a re-push and I was back in business.
Hope this help.


David O’Hara is a Principal with Improving Enterprises in Dallas, Texas.

Advertisements

Krugle…

April 19, 2006

If you're a developer and you've ever used Google to find some code (uh…who hasn't), GO SIGN UP FOR KRUGLE RIGHT NOW!! I signed up about 2 months ago and just finally got in on the beta. It's amazing. You can watch the demo (800×600) to get an idea of what you're waiting for.

The interface is great; it's an Ajax app and beta so there are still some issues (*ahem* BACK BUTTON) but impressive and intuitive nonetheless. It supports a variety of languages from Objective-C and LISP to TCL and sh. There's something in there for everyone.

If you sign up, please leave a note and let me know what you think.

*** UPDATE:  It appears that the beta is closed at this point. Be sure to sign up so that you'll know when it officially rolls out. ***


Ruby Explained (on acid)…

March 8, 2006

As I’ve mentioned before, I’ve decided to teach myself Ruby. It’s really not a complex language but I hadn’t had my “ah-ha” moment with it yet in spite of having read of the tutorials and going over “The Pickaxe“. I just was really just “Google-gramming” (AKA “copy/paste/debug” programming) to get what I wanted. Well, all that has changed.

I don’t remember how I found “Why’s (Poignant) Guide to Ruby” but I’m sure grateful that I did. This explanation of Ruby breaks it down perfectly and leads you thru the wonderland while pointing out and explaining the sights and details. That being said, PLEASE DO NOT READ THIS WHILE ALTERED!! This includes (but is not limited to) drunk, stoned, baked, bagged, hammered, or hopped up. The author, whytheluckstiff, apparently was plenty altered for all of us when this was written. Seriously though, you will have to get past the cartoons and semi-random side trips to find the meat of this guide but I assure you that it’s worth it. And the explanations are just fine even if you’re a beginning programmer. Ruby has really caught my attention as having taken many of the good qualities of various languages and melded them into a powerful and coherent dialect. I probably would even recommend it as a first language for someone who’s looking to learn how to program.