Hi
I’m trying to deploy an app bundled with Rails 1.1 as I’m on a shared
host, but it seems to be crashing out the dispatch.fcgi processes.
I ran rake freeze_gems to get rails in my vendor directory (on a windows
box)
I added it to the svn and deployed, but got this error
./…/config/environment.rb:47: uninitialized constant ActionMailer
(NameError)
from …/config/…/vendor/rails/railties/lib/initializer.rb:40:in
`run’
from ./…/config/environment.rb:14
from ./dispatch.fcgi:21
And the offending lines in the environment.rb are:
14 :
Rails::Initializer.run do |config|
Settings in config/environments/* take precedence those specified
here
.
.
47:
See Rails::Configuration for more options
Include your app’s configuration here:
ActionMailer::Base.server_settings = {
:address => ‘mail.mydomain’,
:port => 25,
:domain => ‘(mydomain’,
:user_name => ‘account@mydomain’,
:password => “mypass”,
:authentication => :login
}
Has anyone else had a similar problem? It’s totally stumped me
Apart from the fact any 1.1 specific methods like form_for crash the
app, it deploys fine under 1.1
ON my Webrick I get one warning:
- environment.rb:6: warning: already initialized constant RAILS_ENV
but that doesn;t stop it running, so I’m not sure if it’s related.
Does anyone know what I’m doing wrong?
Thanks
Piers