The Rabbit Trail: Hosting Gitserver with Rails on OpenShift

We people of GlitterGallery have been trying to figure out how we can add local repo support #161. Until now if a user wanted to put his awesome work for everyone to see and admire, he would have to use our web interface. Which can get really cumbersome, really fast.

Unfortunately there isn’t much documentation about how one should go about  setting up gitserver with rails app. We will be running on openshift so no poking around with apache config files either. I got started with reading these two chapters: Git Internals – Plumbing and Porcelain and Git on the Server of Pro Git Book (If only all good things were free). Just when I was trying to figure out how on earth I am going to implement git-http-backend without having access to server, nice guy Marek pointed me to Grack. So next up was learning more about rack, and I got to do it while hearing the pleasant voice of Ryan Bates: #151 Rack Middleware#222 Rack in Rails 3 and #317 Rack App from Scratch!

We have our push and pull working now, however we need to work on authentication. I am thinking Rack::Auth::Basic and grape.

Advertisements
The Rabbit Trail: Hosting Gitserver with Rails on OpenShift

One thought on “The Rabbit Trail: Hosting Gitserver with Rails on OpenShift

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s