Archive

Posts Tagged ‘collaboa’

Collaboa on ModZer0

September 4th, 2006

Installing Collaboa is really annoying most of the time, and I went thru some
pain this time just getting it running for Fluxbuntu. But here it
is
. I finally can look at all my
revisions without straining my brain to read svndiffs.

Hopefully, http://dev.fluxbuntu.org will be pointing at it shortly.


Uncategorized , ,

Collaboa Trunk Install

June 14th, 2006

Well, I guess I might as well finish the job as much as I can before bed. I’m going to install Collaboa. Here’s the beginning:

Get rails and mongrel, along with all the deps:


sudo gem install rails mongrel redcloth syntax sqlite3-ruby xhtmldiff

Now, get ruby-mysql, which requires some junk on FC5:


sudo yum install mysql mysql-devel
sudo gem install mysql -- --with-mysql-config

Now, get the trunk:


svn co http://svn.collaboa.org/svn/collaboa/trunk/ collaboa --username=anon --password=anon

I’m going to use SQLLite for this project. I have to make the database:


touch db/pdn.db

Here’s my database.yml:


production:
  adapter: sqlite3
  dbfile: db/pdn.db

Now, I have to tell it where my repositories are (config/repository.yml):


production:
  repos_path: /path/to/repos/hank

Now that the database and repository files are setup, I have to import the schema and default settings:


RAILS_ENV="production" rake db_schema_import
RAILS_ENV="production" ruby db/default_content.rb

Now I finally sync the repository with the database:


./script/repository_syncer

Time to start mongrel!


mongrel_rails start -p 3010

Now, I redirect the apache server to mongrel when /browse is accessed (I’m running mongrel on port 3010)(bottom of conf.d/svn.conf):


Redirect /browse  http://example.com/browse
ProxyPass /browse/ http://localhost:3010/browse/
ProxyPassReverse /browse/ http://localhost:3010/browse/

NOTEs:

  • Make sure that BOTH YOUR PROXYPASS LINES HAVE A FINAL / AT THE END OF EACH ARGUMENT. This will solve the redirection limit errors.
  • Make a symbolic link in public to itself, and call it whatever you named the proxypass (in this example, browse). This will stop the no-images/stylesheets madness.


Uncategorized , , ,