Guest User

Untitled

a guest
May 26th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. #here are the SMTP settings
  2.  
  3. ActionMailer::Base.smtp_settings = {
  4. :port => 25,
  5. :address => "mail.authsmtp.com",
  6. :domain => "mail.authsmtp.com",
  7. :user_name => 'user',
  8. :password => 'yeahyeah',
  9. :authentication => :plain
  10. }
  11.  
  12. #environment.rb
  13. RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
  14.  
  15. # Bootstrap the Rails environment, frameworks, and default configuration
  16. require File.join(File.dirname(__FILE__), 'boot')
  17.  
  18. Rails::Initializer.run do |config|
  19. config.action_controller.session = { :session_key => "_integrated_database_session", :secret => "Yeahright" }
  20.  
  21. end
  22.  
  23. gem 'mislav-will_paginate', '~> 2.2'
  24. require 'will_paginate'
  25.  
  26.  
  27. #production.rb #this one throws the error
  28.  
  29. # The production environment is meant for finished, "live" apps.
  30. # Code is not reloaded between requests
  31. config.cache_classes = true #default is true
  32.  
  33. config.action_controller.consider_all_requests_local = false #default is false
  34. config.action_controller.perform_caching = true
  35.  
  36. ActionController::Base.fragment_cache_store = :file_store, "/var/integrated_database/tmp/cache"
  37.  
  38.  
  39.  
  40.  
  41. # Disable delivery errors, bad email addresses will be ignored
  42. config.action_mailer.raise_delivery_errors = true
  43.  
  44. #development.rb #works just fine
  45.  
  46. config.cache_classes = false
  47.  
  48. # Log error messages when you accidentally call methods on nil.
  49. config.whiny_nils = true
  50.  
  51. # Enable the breakpoint server that script/breakpointer connects to
  52. #config.breakpoint_server = true
  53.  
  54. # Show full error reports and disable caching
  55. config.action_controller.consider_all_requests_local = true
  56. config.action_controller.perform_caching = false
  57. config.action_view.cache_template_extensions = false
  58. config.action_view.debug_rjs = true
  59.  
  60. config.action_mailer.raise_delivery_errors = true
Add Comment
Please, Sign In to add comment