summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/boot.rb19
-rw-r--r--config/config_custom.example.rb65
-rw-r--r--config/database.yml69
-rw-r--r--config/environment.rb140
-rw-r--r--config/environments/demo.rb21
-rw-r--r--config/environments/development.rb19
-rw-r--r--config/environments/development_oracle.rb19
-rw-r--r--config/environments/development_pgsql.rb19
-rw-r--r--config/environments/development_sqlserver.rb19
-rw-r--r--config/environments/production.rb20
-rw-r--r--config/environments/test.rb16
-rw-r--r--config/environments/test_oracle.rb16
-rw-r--r--config/environments/test_pgsql.rb16
-rw-r--r--config/environments/test_sqlserver.rb16
-rw-r--r--config/help.yml63
-rw-r--r--config/routes.rb24
16 files changed, 561 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
new file mode 100644
index 000000000..9fcd50fe3
--- /dev/null
+++ b/config/boot.rb
@@ -0,0 +1,19 @@
+# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
+
+unless defined?(RAILS_ROOT)
+ root_path = File.join(File.dirname(__FILE__), '..')
+ unless RUBY_PLATFORM =~ /mswin32/
+ require 'pathname'
+ root_path = Pathname.new(root_path).cleanpath(true).to_s
+ end
+ RAILS_ROOT = root_path
+end
+
+if File.directory?("#{RAILS_ROOT}/vendor/rails")
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
+else
+ require 'rubygems'
+ require 'initializer'
+end
+
+Rails::Initializer.run(:set_load_path)
diff --git a/config/config_custom.example.rb b/config/config_custom.example.rb
new file mode 100644
index 000000000..689d9daec
--- /dev/null
+++ b/config/config_custom.example.rb
@@ -0,0 +1,65 @@
+# redMine - project management software
+# Copyright (C) 2006 Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+# To set your own configuration, rename this file to config_custom.rb
+# and edit parameters below
+# Don't forget to restart the application after any change.
+
+
+# Application host name
+# Used to provide absolute links in mail notifications
+# $RDM_HOST_NAME = "somenet.foo"
+
+# File storage path
+# Directory used to store uploaded files
+# #{RAILS_ROOT} represents application's home directory
+# $RDM_STORAGE_PATH = "#{RAILS_ROOT}/files"
+
+# Set $RDM_LOGIN_REQUIRED to true if you want to force users to login
+# to access any page of the application
+# $RDM_LOGIN_REQUIRED = false
+
+# Uncomment to disable user self-registration
+# $RDM_SELF_REGISTRATION = false
+
+# Default langage ('en', 'es', 'de', 'fr' are available)
+# $RDM_DEFAULT_LANG = 'en'
+
+# Email adress used to send mail notifications
+# $RDM_MAIL_FROM = "redmine@somenet.foo"
+
+# Page title
+# $RDM_HEADER_TITLE = "Title"
+
+# Page sub-title
+# $RDM_HEADER_SUBTITLE = "Sub title"
+
+# Welcome page title
+# $RDM_WELCOME_TITLE = "Welcome"
+
+# Welcome page text
+# $RDM_WELCOME_TEXT = ""
+
+# Signature displayed in footer
+# Email adresses will be automatically displayed as a mailto link
+# $RDM_FOOTER_SIG = "admin@somenet.foo"
+
+# Textile formatting (only available if RedCloth is installed)
+# Textile formatting is automativaly disabled if RedCloth is not available
+# Set to true to manually disable.
+# $RDM_TEXTILE_DISABLED = true
diff --git a/config/database.yml b/config/database.yml
new file mode 100644
index 000000000..cfb6f13df
--- /dev/null
+++ b/config/database.yml
@@ -0,0 +1,69 @@
+# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
+#
+# Get the fast C bindings:
+# gem install mysql
+# (on OS X: gem install mysql -- --include=/usr/local/lib)
+# And be sure to use new-style password hashing:
+# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
+
+production:
+ adapter: mysql
+ database: redmine
+ host: localhost
+ username: root
+ password:
+
+development:
+ adapter: mysql
+ database: redmine_development
+ host: localhost
+ username: root
+ password:
+
+development_pgsql:
+ adapter: postgresql
+ database: redmine
+ host: localhost
+ username: postgres
+ password: "postgres"
+
+development_oracle:
+ adapter: oci
+ host: 192.168.0.14
+ username: rails
+ password: "rails"
+
+development_sqlserver:
+ adapter: sqlserver
+ host: localhost,1157
+ database: redmine
+
+test:
+ adapter: mysql
+ database: redmine_test
+ host: localhost
+ username: root
+ password:
+
+test_pgsql:
+ adapter: postgresql
+ database: redmine
+ host: localhost
+ username: postgres
+ password: "postgres"
+
+test_oracle:
+ adapter: oci
+ host: 192.168.0.14
+ username: rails_test
+ password: "rails"
+
+test_sqlserver:
+ adapter: sqlserver
+ host: localhost,1157
+ database: redmine_test
+
+demo:
+ adapter: sqlite3
+ dbfile: db/redmine_demo.db
+
diff --git a/config/environment.rb b/config/environment.rb
new file mode 100644
index 000000000..359293b6e
--- /dev/null
+++ b/config/environment.rb
@@ -0,0 +1,140 @@
+# Be sure to restart your web server when you modify this file.
+
+# Uncomment below to force Rails into production mode when
+# you don't control web/app server and can't set it the proper way
+# ENV['RAILS_ENV'] ||= 'production'
+
+# Bootstrap the Rails environment, frameworks, and default configuration
+require File.join(File.dirname(__FILE__), 'boot')
+
+Rails::Initializer.run do |config|
+ # Settings in config/environments/* take precedence those specified here
+
+ # Skip frameworks you're not going to use
+ # config.frameworks -= [ :action_web_service, :action_mailer ]
+
+ # Add additional load paths for your own custom dirs
+ # config.load_paths += %W( #{RAILS_ROOT}/extras )
+
+ # Force all environments to use the same logger level
+ # (by default production uses :info, the others :debug)
+ # config.log_level = :debug
+
+ # Use the database for sessions instead of the file system
+ # (create the session table with 'rake create_sessions_table')
+ # config.action_controller.session_store = :active_record_store
+
+ # Enable page/fragment caching by setting a file-based store
+ # (remember to create the caching directory and make it readable to the application)
+ # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
+
+ # Activate observers that should always be running
+ # config.active_record.observers = :cacher, :garbage_collector
+
+ # Make Active Record use UTC-base instead of local time
+ # config.active_record.default_timezone = :utc
+
+ # Use Active Record's schema dumper instead of SQL when creating the test database
+ # (enables use of different database adapters for development and test environments)
+ # config.active_record.schema_format = :ruby
+
+ # See Rails::Configuration for more options
+
+ # SMTP server configuration
+ config.action_mailer.server_settings = {
+ :address => "127.0.0.1",
+ :port => 25,
+ :domain => "somenet.foo",
+ :authentication => :login,
+ :user_name => "redmine",
+ :password => "redmine",
+ }
+
+ config.action_mailer.perform_deliveries = true
+
+ # Tell ActionMailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ #config.action_mailer.delivery_method = :test
+ config.action_mailer.delivery_method = :smtp
+end
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# Inflector.inflections do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
+
+if File.exist? File.join(File.dirname(__FILE__), 'config_custom.rb')
+ begin
+ print "=> Loading config_custom.rb... "
+ require File.join(File.dirname(__FILE__), 'config_custom')
+ puts "done."
+ rescue Exception => detail
+ puts
+ puts detail
+ puts detail.backtrace.join("\n")
+ puts "=> Error in config_custom.rb. Check your configuration."
+ exit
+ end
+end
+
+# IMPORTANT !!! DO NOT MODIFY PARAMETERS HERE
+# Instead, rename config_custom.example.rb to config_custom.rb
+# and set your own configuration in that file
+# Parameters defined in config_custom.rb override those defined below
+
+# application host name
+$RDM_HOST_NAME ||= "localhost:3000"
+# file storage path
+$RDM_STORAGE_PATH ||= "#{RAILS_ROOT}/files"
+# if RDM_LOGIN_REQUIRED is set to true, login is required to access the application
+$RDM_LOGIN_REQUIRED ||= false
+# default langage
+$RDM_DEFAULT_LANG ||= 'en'
+# email sender adress
+$RDM_MAIL_FROM ||= "redmine@somenet.foo"
+
+# page title
+$RDM_HEADER_TITLE ||= "redMine"
+# page sub-title
+$RDM_HEADER_SUBTITLE ||= "Project management"
+# footer signature
+$RDM_FOOTER_SIG = "admin@somenet.foo"
+
+# textile formatting
+# automaticaly disabled if 'textile' method is not defined (RedCloth unavailable)
+$RDM_TEXTILE_DISABLED = true unless ActionView::Helpers::TextHelper.method_defined? "textilize"
+
+# application name
+RDM_APP_NAME = "redMine"
+# application version
+RDM_APP_VERSION = "0.3.0"
+
+ActiveRecord::Errors.default_error_messages = {
+ :inclusion => "activerecord_error_inclusion",
+ :exclusion => "activerecord_error_exclusion",
+ :invalid => "activerecord_error_invalid",
+ :confirmation => "activerecord_error_confirmation",
+ :accepted => "activerecord_error_accepted",
+ :empty => "activerecord_error_empty",
+ :blank => "activerecord_error_blank",
+ :too_long => "activerecord_error_too_long",
+ :too_short => "activerecord_error_too_short",
+ :wrong_length => "activerecord_error_wrong_length",
+ :taken => "activerecord_error_taken",
+ :not_a_number => "activerecord_error_not_a_number"
+}
+
+ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
+
+GLoc.set_config :default_language => $RDM_DEFAULT_LANG
+GLoc.clear_strings
+GLoc.set_kcode
+GLoc.load_localized_strings
+GLoc.set_config(:raise_string_not_found_errors => false)
+
+
diff --git a/config/environments/demo.rb b/config/environments/demo.rb
new file mode 100644
index 000000000..52aef32f1
--- /dev/null
+++ b/config/environments/demo.rb
@@ -0,0 +1,21 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+config.log_level = :info
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable mail delivery
+config.action_mailer.perform_deliveries = false
+config.action_mailer.raise_delivery_errors = false
+
diff --git a/config/environments/development.rb b/config/environments/development.rb
new file mode 100644
index 000000000..04b779200
--- /dev/null
+++ b/config/environments/development.rb
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request. This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = false
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Enable the breakpoint server that script/breakpointer connects to
+config.breakpoint_server = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
diff --git a/config/environments/development_oracle.rb b/config/environments/development_oracle.rb
new file mode 100644
index 000000000..04b779200
--- /dev/null
+++ b/config/environments/development_oracle.rb
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request. This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = false
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Enable the breakpoint server that script/breakpointer connects to
+config.breakpoint_server = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
diff --git a/config/environments/development_pgsql.rb b/config/environments/development_pgsql.rb
new file mode 100644
index 000000000..04b779200
--- /dev/null
+++ b/config/environments/development_pgsql.rb
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request. This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = false
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Enable the breakpoint server that script/breakpointer connects to
+config.breakpoint_server = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
diff --git a/config/environments/development_sqlserver.rb b/config/environments/development_sqlserver.rb
new file mode 100644
index 000000000..04b779200
--- /dev/null
+++ b/config/environments/development_sqlserver.rb
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request. This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = false
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Enable the breakpoint server that script/breakpointer connects to
+config.breakpoint_server = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
diff --git a/config/environments/production.rb b/config/environments/production.rb
new file mode 100644
index 000000000..4cd4e086b
--- /dev/null
+++ b/config/environments/production.rb
@@ -0,0 +1,20 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable delivery errors if you bad email addresses should just be ignored
+config.action_mailer.raise_delivery_errors = false
+
diff --git a/config/environments/test.rb b/config/environments/test.rb
new file mode 100644
index 000000000..9ba9ae0f8
--- /dev/null
+++ b/config/environments/test.rb
@@ -0,0 +1,16 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite. You never need to work with it otherwise. Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs. Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+config.action_mailer.delivery_method = :test
diff --git a/config/environments/test_oracle.rb b/config/environments/test_oracle.rb
new file mode 100644
index 000000000..35bb19bee
--- /dev/null
+++ b/config/environments/test_oracle.rb
@@ -0,0 +1,16 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite. You never need to work with it otherwise. Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs. Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+config.action_mailer.delivery_method = :test \ No newline at end of file
diff --git a/config/environments/test_pgsql.rb b/config/environments/test_pgsql.rb
new file mode 100644
index 000000000..35bb19bee
--- /dev/null
+++ b/config/environments/test_pgsql.rb
@@ -0,0 +1,16 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite. You never need to work with it otherwise. Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs. Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+config.action_mailer.delivery_method = :test \ No newline at end of file
diff --git a/config/environments/test_sqlserver.rb b/config/environments/test_sqlserver.rb
new file mode 100644
index 000000000..35bb19bee
--- /dev/null
+++ b/config/environments/test_sqlserver.rb
@@ -0,0 +1,16 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite. You never need to work with it otherwise. Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs. Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+config.action_mailer.delivery_method = :test \ No newline at end of file
diff --git a/config/help.yml b/config/help.yml
new file mode 100644
index 000000000..b02a06fb1
--- /dev/null
+++ b/config/help.yml
@@ -0,0 +1,63 @@
+# redMine - project management software
+# Copyright (C) 2006 Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# available languages for help pages
+langs:
+ - en
+ - fr
+
+# mapping between controller/action and help pages
+# if action is not defined here, 'index' page will be displayed
+pages:
+ # administration
+ admin:
+ index: ch01.html
+ mail_options: ch01s08.html
+ info: ch01s09.html
+ users:
+ index: ch01s01.html
+ roles:
+ index: ch01s02.html
+ workflow: ch01s06.html
+ trackers:
+ index: ch01s03.html
+ issue_statuses:
+ index: ch01s05.html
+ # projects
+ projects:
+ index: ch02.html
+ add: ch02s08.html
+ show: ch02s01.html
+ add_document: ch02s06.html
+ list_documents: ch02s06.html
+ add_issue: ch02s02.html
+ list_issues: ch02s02.html
+ add_news: ch02s05.html
+ list_news: ch02s05.html
+ add_file: ch02s07.html
+ list_files: ch02s07.html
+ changelog: ch02s04.html
+ issues:
+ index: ch02s02.html
+ documents:
+ index: ch02s06.html
+ news:
+ index: ch02s05.html
+ versions:
+ index: ch02s08.html
+ reports:
+ index: ch02s03.html \ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
new file mode 100644
index 000000000..2559159f1
--- /dev/null
+++ b/config/routes.rb
@@ -0,0 +1,24 @@
+ActionController::Routing::Routes.draw do |map|
+ # Add your own custom routes here.
+ # The priority is based upon order of creation: first created -> highest priority.
+
+ # Here's a sample route:
+ # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # You can have the root of your site routed by hooking up ''
+ # -- just remember to delete public/index.html.
+ map.connect '', :controller => "welcome"
+
+ map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
+ map.connect 'help/:ctrl/:page', :controller => 'help'
+ map.connect ':controller/:action/:id/:sort_key/:sort_order'
+
+ # Allow downloading Web Service WSDL as a file with an extension
+ # instead of a file named 'wsdl'
+ map.connect ':controller/service.wsdl', :action => 'wsdl'
+
+
+ # Install the default route as the lowest priority.
+ map.connect ':controller/:action/:id'
+end