[2778a4]: INSTALL.txt  Maximize  Restore  History

Download this file

70 lines (48 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Installing CatTrack
-------------------
This document assumes you know how to install a standard rails
application and only documents the features that are unique to
the CatTrack application.
Database Setup
--------------
1. Copy "config/database.example.yml" to "config/database.yml" and edit
the database settings for production environment.
2. Run "rake db:migrate RAILS_ENV=production" to initialize the database
structure and populate it with required values.
3. Run "script/console -e production" and create a user that will have
access to the administration section of CatTrack. Simple transcript
follows;
> u = User.new
> u.username = 'myusername'
> u.password = 'mypass'
> u.active = true
> u.admin = true
> u.save!
Mailer Setup
------------
1. Copy "config/local.example.rb" to "config/local.rb" and edit the mail
settings.
2. Run "script/console -e production" so to setup system configuration defining
who the email comes from and where error mails will be sent. This can be
achieved via;
> SystemSetting.create!(:name => 'mail.from', :value => 'rvm-regression@cs.anu.edu.au')
> SystemSetting.create!(:name => 'mail.on.error', :value => 'cattrack.admin@example.com')
> SystemSetting.create!(:name => 'report.mail.to', :value => 'jikesrvm-regression@lists.sourceforge.net')
> SystemSetting.create!(:name => 'report.reply.to', :value => 'jikesrvm-core@lists.sourceforge.net')
Web Setup
---------
1. Start the web app via
> cd path/to/cattrack && /var/lib/gems/1.8/bin/mongrel_rails start -e production -d
2. Stop the web app via
> cd path/to/cattrack && /var/lib/gems/1.8/bin/mongrel_rails stop
3. If you are not hosting cattrack at the root level of your web application
then you will need to edit "config/local.rb" so that contains code such as
ActionController::AbstractRequest.relative_url_root = "/cattrack"
4. To frontend it with apache the easiest approach is to set it up as pass through proxy.
Cron Setup
----------
1. Edit crontab so that stale sessions are removed every five minutes. Add a line such
as following to crontab to do this.
*/5 * * * * cd path/to/cattrack && rake db:sessions:remove_stale RAILS_ENV=production
2. Edit crontab so that imports occur every 12 or so hours. Cron tab line follows;
0 */12 * * * cd path/to/cattrack && ./script/runner -e production "TestRunImporter.process_incoming_test_runs(true)"

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks