It isn't likely that we'll be able to make a one-click installer for Gitorious. This is mainly because it's a large application that requires several other complete application installs as dependencies. Also, there is a lot of customization that would need to be done.
That said, I have gone through and gotten a Gitorious application semi-running. it's still giving some template errors (application-specific, probably) but should be a large step in the right direction. Here is what I have done thus far:
(01) Install a git 1.7.2 app named "git"
(02) Install Rails 3.0.3 (nginx 0.7.64/Passenger 2.2.15/Ruby Enterprise Edition 1.8.7) app named "gitorious"
(03) Install a new "Custom Application (listening on port)" named "activemq" and record the port number assigned by the Control Panel
(04) create a MySQL database named "username_gdb" and then set the password to something using only letters and numbers
(05) set up both http and https website records for the "gitorious" application on URL Path of "/".
(06) install the STOMP server:
easy_install-2.6 virtualenv
virtualenv --distribute --no-site-packages $HOME/gitorious_env
source $HOME/gitorious_env/bin/activate
easy_install-2.6 CoilMQ
easy_install-2.6 python-daemon
coilmq -b 127.0.0.1 -p ACTIVE_MQ_PORT -d
Note: in the future, start this with:
source $HOME/gitorious_env/bin/activate
coilmq -b 127.0.0.1 -p ACTIVE_MQ_PORT -d
(07) cd $HOME/webapps/gitorious && rm -rf hello_world
(08) git clone git://gitorious.org/gitorious/mainline.git gitorious
for reference, I am working at commit 2564b19a186ce0012a1cb859de2b6d46fbad877a
So, if you have problems, you can always "git reset --hard 2564b19a186ce0012a1cb859de2b6d46fbad877a" to use the version I am at.
(09) edit nginx/conf/nginx.conf and replace "hello_world" with "gitorious"
(10) cd $HOME/webapps/gitorious/gitorious/config/
(11) cp gitorious.sample.yml gitorious.yml
(12) edit gitorious.yml and setup your settings, specifically, copy the "test" environment to "production", and then:
(13) set a new secret key
(14) set your repository_base_path to /home/username/webapps/git/repos
(15) set the "gitorious_client_port" to the ACTIVE_MQ_PORT
(16) set the "gitorious_host" to the URL where this app is hosted in your website record
(17) set the "gitorious_user" to your username
(18) set your gitorious_support_email to your email
(19) set archive_cache_dir to /home/username/webapps/gitorious/gitorious_tmp/tarballs-cache
(20) set archive_work_dir to /home/username/webapps/gitorious/gitorious_tmp/tarballs-work
(21) set is_gitorious_dot_org to false
(22) mkdir -p $HOME/webapps/gitorious/gitorious_tmp/tarballs-cache
(23) mkdir -p $HOME/webapps/gitorious/gitorious_tmp/tarballs-work
(24) cp database.sample.yml database.yml
(25) edit "database.yml" and under "production", set it up, specifically, under production:
(26) adapter: mysql
database: username_gdb
username: username_gdb
password: dabase_password
host: localhost
encoding: utf8
(27) install necessary gems (using the method described at http://docs.webfaction.com/software/rails.html#installing-gems). Do this:
cd $HOME/webapps/gitorious
export GEM_HOME=$PWD/gems
export PATH=$PWD/bin:$PATH
gem install rack -v 1.0.1
gem install chronic -v 0.3.0
gem install mysql -- --with-mysql-config=$(which mysql_config)
gem install geoip -v 0.8.9
gem install daemons -v 1.1.0
gem install hoe -v 2.6.1
gem install echoe -v 4.3.1
gem install ruby-yadis -v 0.3.4
gem install ruby-openid -v 2.0.4
gem install rdiscount -v 1.3.1.1
gem install stomp -v 1.1
gem install diff-lcs -v 1.1.2
gem install json -v 1.5.1
gem install ruby-hmac -v 0.4.0
gem install sphinx -v 0.9.10.2122
gem install ultrasphinx -v 1.11
(28) create the db tables
cd $HOME/webapps/gitorious/gitorious
rake db:migrate RAILS_ENV=production
(29) rake ultrasphinx:configure RAILS_ENV=production
(30) restart the server:
$HOME/webapps/gitorious/bin/restart
(31) view the site on the URL specified in the Website records created earlier.
Hope that helps!
answered
04 Feb '11, 04:48
ryans ♦♦
5.0k●10●39●60
accept rate:
43%