Advertisement
princeofisles

RoR app - Passenger and Apache issues

Jan 29th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 1.28 KB | None | 0 0
  1. Gems installed
  2. ---------------------------
  3. *** LOCAL GEMS ***
  4. actionmailer (2.3.5)
  5. actionpack (2.3.5)
  6. activerecord (2.3.5)
  7. activeresource (2.3.5)
  8. activesupport (2.3.5)
  9. bundler (1.2.3)
  10. daemon_controller (1.1.1)
  11. declarative_authorization (0.5.6, 0.5.1)
  12. fastthread (1.0.7)
  13. fattr (2.2.1)
  14. i18n (0.4.2)
  15. mysql (2.9.0, 2.8.1)
  16. passenger (3.0.19)
  17. rack (1.0.1)
  18. rails (2.3.5)
  19. rake (0.8.7)
  20. rush (0.6.8)
  21. session (3.1.0)
  22.  
  23.  
  24. Gemfile
  25. ---------------------------
  26. source :rubygems
  27. gem 'rails','2.3.5'
  28. gem 'i18n','0.4.2'
  29. gem 'declarative_authorization','0.5.1'
  30. gem 'mysql','2.8.1'
  31. gem 'rake','0.8.7'
  32. gem 'rush','0.6.8'
  33.  
  34.  
  35. config/environment.rb
  36. ---------------------------
  37. require File.join(File.dirname(__FILE__), 'boot')
  38. RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
  39. #I have removed some blank lines..so the line number shown on the error trace (5) now becomes the following....
  40. Rails::Initializer.run do |config|
  41.   config.time_zone = 'UTC'
  42.   config.gem 'declarative_authorization', :source => 'http://gemcutter.org'
  43.  
  44.   config.load_once_paths += %W( #{RAILS_ROOT}/lib )
  45.   config.load_paths += Dir["#{RAILS_ROOT}/app/models/*"].find_all { |f| File.stat(f).directory? }
  46.  
  47.   config.reload_plugins = true if RAILS_ENV =="development"
  48.   config.plugins = [:paperclip,:all]
  49.  
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement