Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 25
- Log:
Configured for temporary /rails/collaboa location on Alpha. Changed
database schema so 'completed' flag in 'milestones' table is an integer
rather than a boolean because there are comparisons with zero in a few
places in the code, but PostgreSQL strongly types booleans and will not
automatically or cast it or allow it to be explicitly cast. It was
simpler to change the database type to match the code.Added a local copy of RedCloth since it didn't appear in the right
place (this appears in 'vendor'). Updated the 'syntax' library to use
more explicit 'require' paths - some of the files looked like they were
expecting 'require' to work from the directory in which the file itself
resided, but Ruby/Rails, at least on Alpha, treats them as coming from
the application root at all times.As housekeeping, deleted spurious log files.
- Author:
- adh
- Date:
- Mon Jul 24 22:03:51 +0100 2006
- Size:
- 3153 Bytes
1 | # Be sure to restart your webserver when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode |
4 | # (Use only when you can't set environment variables through your web/app server) |
5 | # ENV['RAILS_ENV'] = 'production' |
6 | |
7 | # Bootstrap the Rails environment, frameworks, and default configuration |
8 | require File.join(File.dirname(__FILE__), 'boot') |
9 | |
10 | Rails::Initializer.run do |config| |
11 | # We don't run in the document root, so images etc. must come from |
12 | # a non-root location too. Hijack the 'asset host' facility to get |
13 | # helper-based links pointing in the right place. |
14 | config.action_controller.asset_host = "/rails/collaboa" |
15 | |
16 | # Skip frameworks you're not going to use |
17 | config.frameworks -= [ :action_web_service, :action_mailer ] |
18 | |
19 | # Add additional load paths for your own custom dirs |
20 | # config.load_paths += %W( #{RAILS_ROOT}/app/services ) |
21 | |
22 | # Force all environments to use the same logger level |
23 | # (by default production uses :info, the others :debug) |
24 | config.log_level = :warn |
25 | |
26 | # Use the database for sessions instead of the file system |
27 | # (create the session table with 'rake create_sessions_table') |
28 | config.action_controller.session_store = :active_record_store |
29 | |
30 | # Enable page/fragment caching by setting a file-based store |
31 | # (remember to create the caching directory and make it readable to the application) |
32 | # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" |
33 | |
34 | # Activate observers that should always be running |
35 | # config.active_record.observers = :cacher, :garbage_collector |
36 | |
37 | # Make Active Record use UTC-base instead of local time |
38 | config.active_record.default_timezone = :utc |
39 | |
40 | # Use Active Record's schema dumper instead of SQL when creating the test database |
41 | # (enables use of different database adapters for development and test environments) |
42 | config.active_record.schema_format = :ruby |
43 | |
44 | # See Rails::Configuration for more options |
45 | end |
46 | |
47 | # Add new inflection rules using the following format |
48 | # (all these examples are active by default): |
49 | # Inflector.inflections do |inflect| |
50 | # inflect.plural /^(ox)$/i, '\1en' |
51 | # inflect.singular /^(ox)en/i, '\1' |
52 | # inflect.irregular 'person', 'people' |
53 | # inflect.uncountable %w( fish sheep ) |
54 | # end |
55 | |
56 | Inflector.inflections do |inflect| |
57 | inflect.uncountable %w( status ) |
58 | end |
59 | |
60 | # Include your application configuration below |
61 | |
62 | # Allow multiple Rails applications by giving the session cookie a |
63 | # unique prefix. |
64 | |
65 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'collaboaapp_session_id' |
66 | |
67 | # Make ruby use utf8 |
68 | $KCODE = 'u' |
69 | |
70 | require 'jcode' |
71 | require 'syntax/lib/syntax' |
72 | Syntax::all().each { |syntax| Syntax::load(syntax) } |
73 | require 'syntax/lib/syntax/convertors/html' |
74 | require 'digest/sha1' |
75 | require 'redcloth/lib/redcloth' |
76 | |
77 | # Where do we store our attachments? |
78 | ATTACHMENTS_PATH = RAILS_ROOT + '/attachments' |
79 | |
80 | # Load our config file |
81 | REPOS_CONF = YAML::load(File.open("#{RAILS_ROOT}/config/repository.yml")) |
82 | |
83 | # Require ActionSubversion |
84 | require 'actionsubversion/lib/action_subversion' |
85 | # Setup the path to our Subversion repository |
86 | ActionSubversion::Base.repository_path = REPOS_CONF[RAILS_ENV]['repos_path'].to_s |