Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 183
- Log:
Updated to run on Rails 1.2. Bugs in Rails 1.2 mean that
a database connection is required, so a temporary config
file is provided in database.yml.
- Author:
- rool
- Date:
- Sun Mar 25 18:36:49 +0100 2007
- Size:
- 2586 Bytes
1 | # Be sure to restart your web server when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode when |
4 | # you don't control web/app server and can't set it the proper way |
5 | # ENV['RAILS_ENV'] ||= 'production' |
6 | |
7 | # Specifies gem version of Rails to use when vendor/rails is not present |
8 | #RAILS_GEM_VERSION = '1.1.5' |
9 | |
10 | # Bootstrap the Rails environment, frameworks, and default configuration |
11 | require File.join(File.dirname(__FILE__), 'boot') |
12 | |
13 | # Location of application relative to document root in terms of |
14 | # URLs (i.e. according to the web server configuration, not the |
15 | # filesystem location) and location in the filesystem, rather than |
16 | # according to the Web server, of the CVSweb and CVShistory scripts. |
17 | # Next up is the filesystem location of CVSLog2Web output and the |
18 | # path to use for URLs for CVShistory - the bit up to and including |
19 | # the ".cgi", before the query string is appended, excluding the |
20 | # host. The host is taken from ENV['SERVER_ADDR']. If the request |
21 | # uses port DEVEL_HTTPS_PORT, it is switched to DEVEL_HTTP_PORT for |
22 | # a normal HTTP request. If the port is already DEVEL_HTTP_PORT it |
23 | # is left alone, again for a normal HTTP request. Otherwise, the |
24 | # port is reset to 80. |
25 | |
26 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] |
27 | CVSWEB_LOCATION = '/home/rool/devel/perl/cvsweb/cvsweb.cgi' |
28 | CVSHISTORY_LOCATION = '/home/rool/devel/python/cvshistory/cvshistory.cgi' |
29 | CVSLOG2WEB_OUTPUT = '/home/rool/devel/python/cvslog2web/public' |
30 | CVSLOG2WEB_PREFIX = '/python/cvshistory/cvshistory.cgi' |
31 | DEVEL_HTTP_PORT = '25080' |
32 | DEVEL_HTTPS_PORT = '25081' |
33 | |
34 | Rails::Initializer.run do |config| |
35 | # We don't run in the document root, so images etc. must come from |
36 | # a non-root location too. Hijack the 'asset host' facility to get |
37 | # helper-based links pointing in the right place. |
38 | |
39 | config.action_controller.asset_host = PATH_PREFIX |
40 | |
41 | # Skip frameworks that are not used. |
42 | |
43 | # config.frameworks -= [ :action_web_service, :action_mailer, :active_record ] |
44 | config.frameworks -= [ :action_web_service, :action_mailer ] |
45 | |
46 | # Force all environments to use the same logger level |
47 | # (by default production uses :info, the others :debug). |
48 | |
49 | config.log_level = :warn |
50 | end |
51 | |
52 | # Allow multiple Rails applications by giving the session cookie a |
53 | # unique prefix. In this application the ApplicationController class |
54 | # turns sessions off (at the time of writing, 22-Aug-2006) anyway, |
55 | # but in future sessions may be used again in which case the line |
56 | # below will be important. |
57 | |
58 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'rcvswebapp_session_id' |