Project

General

Profile

Actions

Defect #6081

closed

Get error when trying to set environment to something other then development, test or production

Added by Roy Nielsen over 14 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-08-09
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Error:
undefined method `[]' for nil:NilClass
Exception class:
NoMethodError

OS Ubuntu 10.4
redmine 0.9.3-1 (came with the distro)

Yes, I've set the /etc/redmine/default/database.yml to add:

to_migrate:
  adapter: mysql
  database: to_migrate
  host: localhost
  port: 
  username: redmine
  password: <mypass>
  encoding: utf8

environment.rb to have the following RAILS_ENV:
ENV['RAILS_ENV'] ||= 'to_migrate'

and made a to_migrate.rb (a copy of the development.rb file)

When I do all those things for development or production, it works... Trying to do something other gives the error above.

Actions

Also available in: Atom PDF