Changesets can be listed by changeset number.
The Git repository is here.
Changeset 226
When running Rake tasks, the use of PATH_PREFIX in routes.rb causes
problems. The routes get parsed but unless RAILS_RELATIVE_URL_ROOT is
set in the environment, they fail because PATH_PREFIX ends up 'nil'
and you can't add 'nil' to a string. Up until now I've just set the
environment variable to an empty string (any defined value will do)
and started again, but this is pretty stupid. A far simpler approach
is to just define PATH_PREFIX to an empty string if the enviroment
variable is missing, allowing rake tasks to run without extra work.
Modified environment.rb to do this in all cases, including patching
old applications that aren't used, in case they're ever used again.
- Comitted by: rool
- Date: Wednesday June 13 18:00:17 2007 (over 17 years ago)
Affected files:
- rool/rails/beast/trunk/config/environment.rb (diff)
- rool/rails/collaboa/trunk/config/environment.rb (diff)
- rool/rails/gullery/trunk/config/environment.rb (diff)
- rool/rails/hub/trunk/config/environment.rb (diff)
- rool/rails/i2/trunk/config/environment.rb (diff)
- rool/rails/radiant/trunk/config/environment.rb (diff)
- rool/rails/rcvsweb/trunk/config/environment.rb (diff)
- rool/rails/rforum/trunk/config/environment.rb (diff)
- rool/rails/typo/trunk/config/environment.rb (diff)
rool/rails/beast/trunk/config/environment.rb:
prev. | current | |
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
13 | ||
13 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |
rool/rails/collaboa/trunk/config/environment.rb:
prev. | current | |
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
10 | ||
10 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |
rool/rails/gullery/trunk/config/environment.rb:
prev. | current | |
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
10 | ||
10 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |
rool/rails/hub/trunk/config/environment.rb:
prev. | current | |
# URLs (i.e. according to the web server configuration, not the | ||
# filesystem location) and location in the filesystem, rather than | ||
# according to the Web server, of the login indicator icons. | ||
17 | ||
17 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
LOGIN_ICONS = "#{RAILS_ROOT}/public/images/icons" | ||
Rails::Initializer.run do |config| |
rool/rails/i2/trunk/config/environment.rb:
prev. | current | |
# Location of application relative to document root in terms of | ||
# URLs (i.e. according to the web server configuration, not the | ||
# filesystem location). | ||
13 | ||
13 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |
rool/rails/radiant/trunk/config/environment.rb:
prev. | current | |
# filesystem location). Location of that server document root, as | ||
# a physical path. | ||
18 | ||
18 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
PATH_TO_DOCUMENT_ROOT = ENV['SERVER_DOCUMENT_ROOT'] | ||
require 'radius' |
rool/rails/rcvsweb/trunk/config/environment.rb:
prev. | current | |
# is left alone, again for a normal HTTP request. Otherwise, the | ||
# port is reset to 80. | ||
26 | ||
26 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
CVSWEB_LOCATION = '/home/rool/devel/perl/cvsweb/cvsweb.cgi' | ||
CVSHISTORY_LOCATION = '/home/rool/devel/python/cvshistory/cvshistory.cgi' | ||
CVSLOG2WEB_OUTPUT = '/home/rool/devel/python/cvslog2web/public' |
rool/rails/rforum/trunk/config/environment.rb:
prev. | current | |
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
10 | ||
10 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |
rool/rails/typo/trunk/config/environment.rb:
prev. | current | |
# URLs (i.e. according to the web server configuration, not the | ||
# filesystem location). | ||
14 | ||
14 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] || '' | |
Rails::Initializer.run do |config| | ||
# We don't run in the document root, so images etc. must come from |