Forum: Ruby on Rails rake freeze_gems and mailer problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fc62c7ce136d50a68b13beb00765218?d=identicon&s=25 Piers (Guest)
on 2006-05-19 17:29
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
This topic is locked and can not be replied to.