2011年5月8日 星期日

gitosis on dotcloud

* have a python server on dotcloud (for less package dependency problem)
* get gitosis with wildcard patches
git clone https://github.com/mzupan/gitosis.git

* create your ssh rsa key
ssh-keygen -t rsa

* install gitosis with dotcloud acccount (since it is the only account you can have)
cd gitosis/
python setup.py install
gitosis-init < ~/.ssh/id_rsa.pub

* some git settings...
git config --global user.email "zheharry@gmail.com"
git config --global user.name "Harry"

* add user binaries in your PATH env of .bashrc
export PATH=/home/dotcloud/env/bin:${PATH}

* change executive attributes
chmod +x ~/repositories/gitosis-admin.git/hooks

* modify ~/repositories/gitosis-admin.git/hooks/
git-update-server-info ---> git update-server-info

* modify ~/.ssh/authorized_keys
command="/home/dotcloud/env/bin/gitosis-serve

沒有留言: