Deploying Rails to Centos 5 : Git
ShareThis

Deploying Rails to Centos 5 : Git

386 days ago in Coding

Welcome to the rails deployment series. Today, we will be installing Git on your remote server. I am not going to go into the debate of SVN vs Git. *yawnz. The purpose of installing Git in the remote server is mainly cuz my local runs Git as well and I will also be installing Gitosis in the remote server to act as a repo where I can push changes to.

Deploying Rails to Centos 5

So to start off, make sure you have all the dependencies by installing

 yum install curl-devel expat-devel gettext-devel 
openssl-devel zlib-devel

Head to http://git-scm.com/download and grab the latest link for Linux. The link is at the top right sidebar. Took me a while to find it. darn. lol.

 wget paste-link-for-git

Once it is downloaded, you can install it by running

tar -jxf git-1.7.2.2.tar.bz
cd git-1.7.2.2
make prefix=/usr/local all
sudo make prefix=/usr/local install

Make sure you type in your git archive’s name, and not the one in the code above. icon biggrin : Deploying Rails to Centos 5 : Git

When the installation is done, you can now safely remove the tar files and the git-1.7.2.2 folder by doing

 rm git-1.7.2.2.tar.gz
rm -rf git-1.7.2.2

Once you are done installing, you can check if you have git install by running

 git

You are done for now! Leave git alone and let’s install some rubies and rails!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>