Gitorious
Jump to navigation
Jump to search
Gitorious[edit]
Installation[edit]
1. First install ruby on rails
2. Clone gitorious
#> git clone git://gitorious.org/gitorious/mainline.git gitorious
3. Install Sphinx
#> wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz #> tar -xzvf sphinx-0.9.8.1.tar.gz #> cd sphinx-0.9.8.1/ #> ./configure #> make #> sudo make install
4. Install some gems
#> sudo apt-get install libmagickcore-dev #> gem install rmagick #> gem install chronic
5. Configure database access
config/database.yml
#> cd /home/proofek/git/gitorious/ #> cp config/database.sample.yml config/database.yml
For mysql access you will need mysql driver
#> gem install mysql
6. Configure gitorious
config/gitorious.yml
#> cd /home/proofek/git/gitorious/ #> cp config/gitorious.sample.yml config/gitorious.yml
Modify top part of the test section as follows:
# The session secret key (`apg -m 64` is always useful for this kinda stuff) cookie_secret: PranhailRoikErcAftAjfurheendOuWayzonpidBinbimejVotAsHufKuitdixnu
# The path where git repositories are stored. The actual (bare) repositories resides
# in repository_base_path/#{project.slug}/#{repository.name}.git/:
repository_base_path: "/home/proofek/git/"
and copy it over as well to development section
7. Configure message queue
#> cd /home/proofek/git/gitorious/ #> cp config/broker.yml.example config/broker.yml
8. Install gitorious specific gems
#> cd /home/proofek/git/gitorious/ #> gem install rack #> rake gems:install
9. Create gitorious database
#> rake db:create:all #> gem install ruby-hmac #> rake db:migrate
10. Test the installation
#> rake gems:install RAILS_ENV=test #> rake test
11. Set up Apache ActiveMQ
#> wget http://www.smudge-it.co.uk/pub/apache/activemq/apache-activemq/5.2.0/apache-activemq-5.2.0-bin.tar.gz #> tar -xzvf apache-activemq-5.2.0-bin.tar.gz #> cd apache-activemq-5.2.0/bin/ #> ./activemq #> script/poller start
12. Setup Sphinx
Run the following commands:
for RAILS_ENV in development test production ; do RAILS_ENV=$RAILS_ENV rake ultrasphinx:configure RAILS_ENV=$RAILS_ENV rake ultrasphinx:index done RAILS_ENV=production rake ultrasphinx:daemon:start &