Archive

Posts Tagged ‘Project Management’

How to Install Tracks 1.7 on Centos 5.2

April 5th, 2009 No comments

 

Install Ruby on Rails – Use http://www.how-to-linux.com/2008/12/how-to-install-ruby-on-rails-on-centos-52/

Create a database for Tracks

mysql -u root -p

create database tracks;

exit

Download Tracks from http://bsag.bingodisk.com/public/files/tracks-current.zip

Unzip the Tracks archive

unzip tracks-current.zip

Put tracks into /opt

mv tracks-1.7 /opt

Edit /opt/tracks-1.7/config/database.yml

vi /opt/tracks-1.7/config/database.yml

Add you mysql server details

production:

  adapter: mysql

  database: tracks

  hosts: localhost

  username: root

  password: neveruserrootpassword

Change a config in site.yml

vi /opt/tracks-1.7/config/site.yml

Add something unique in the salt parameter.

Add the Tracks data to the database

rake db:migrate RAILS_ENV=production

If you get this error;

no such file to load — mysql

Download ruby-mysql – http://rubyforge.org/frs/?group_id=4550

tar mysql-ruby-2.7.tar.gz

cd mysql-ruby-2.7

ruby extconf.rb –with-mysql-config

make

make install

Now run the server

script/server -e production

Goto http://localhost:3000

Install Clocking IT on Centos 5.2

January 18th, 2009 No comments

Install Ruby on Rails – see http://www.how-to-linux.com/2008/12/how-to-install-ruby-on-rails-on-centos-52/

Install git – see http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/

Install imagemagick for ruby

yum install ImageMagick ImageMagick-devel

gem install rmagick -v 1.15.13 –no-rdoc –no-ri

Install passenger

yum install gcc-c++ httpd-devel

gem install passenger

passenger-install-apache2-module

I go this error when I ran passenger-install-apache2-module.

Apache 2… not found

I need to force install some apps to fix this

yum install apr-util-devel.x86_64 expat-devel.x86_64 apr-devel.x86_64

And then run

passenger-install-apache2-module

This completed the install of passenger.  Then I setup a virtual host for cit.

vi /etc/httpd/conf.d/cit.conf

I entered the location of where I planned to install clocking it, change for you config.

<VirtualHost *:80>

ServerName cit.domain.com

DocumentRoot /var/www/html/cit/public/

ErrorLog /var/www/html/cit/log/server.log

<Directory /var/www/html/cit/public/>

Options ExecCGI FollowSymLinks

AllowOverride all

Allow from all

Order allow,deny

</Directory>

</VirtualHost>

Restart httpd

service httpd restart

Install mysql

yum install mysql-server

service mysqld start

Create a Clocking It database

mysql -u root

create database cit;

exit

Set the root password on mysql

/usr/bin/mysqladmin -u root password ‘new-password’

Turn on a bunch of services on boot up.

chkconfig httpd on

chkconfig mysqld on

Get the latest clocking it code with git

cd /var/www/html/

git clone git://repo.clockingit.com/cit

Install the remain gems needed.

gem install fastercsv mongrel gchartrb RedCloth tzinfo echoe test-spec eventmachine icalendar ferret json hoe ZenTest -r

Now run the clocking it setup script.

ruby setup.rb

You will need to enter a domain name, an ip will not work.

I answered yes to install the database schema

If you need to restart the server it is;

./script/ferret_server -e production start

nohup ./script/push_server &

./script/server production

Access your installation from http://cit.domain.com:3000

The push server does not seem to work