Forum: Ruby on Rails rake freeze_gems and mailer problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Piers (Guest)
on 2006-05-19 19:29
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
I added it to the svn and deployed, but got this error

./../config/environment.rb:47: uninitialized constant ActionMailer
        from ../config/../vendor/rails/railties/lib/initializer.rb:40:in
        from ./../config/environment.rb:14
        from ./dispatch.fcgi:21

And the offending lines in the environment.rb are:

14 : do |config|
  # Settings in config/environments/* take precedence those specified

  # 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?


This topic is locked and can not be replied to.