The title says it all - please bear with me. To let you know where I stand, I have been working for up to 12 hours a day for 2 months and 2 weeks trying to get my site ready for release. In development (on windows) it works perfectly. In production (on linux ubuntu) it does not.
I stopped using capistrano because there are problems with the repo on github and things aren't working well with that. I figured the easiest way for the first time would be to create a separate folder for production testing and point my virtual host to that.
I have the following issues from start to finish:
(Setup: Using ubuntu hardy, apache, passenger, rails 2.3.3, ruby 1.8.6)
Issue One: Last night when I did the manual install and went to my server, passenger told me that one of my plugin methods wasn't available. I was subsequently told by a friend that you have to include "all" gems in environment.rb. So, I put require next to the gems I use in order:
require "rubygems" require "redcloth" require "will_paginate" require "mysql"
Issue Two: After restarting the server, I was getting an issue about one of the constants I have in my environment. I disabled the constant in the two files it exists (because it wouldn't affect things outright). When running touch restart.txt and going to my site I'm getting an Internal Server Error 500 message.
I check the logs and there's nothing written to them. Just one line only on production. Server log has 0.
# Logfile created on Tue Aug 11 13:26:37 +0000 2009
So, I'm unable to view errors or figure out what is going wrong with my setup.
Issue Three: Another person told me that I don't need to require the gems in environment rb and that I should just use the config and do a rake gems:install so I add them there:
config.gem "rubygems" config.gem "redcloth" config.gem "will_paginate" config.gem "mysql"
Run sudo rake gems:install
WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /home/jdezenzio/.gem/ruby/1.8/bin in your PATH, gem executables will not run.
GEM ENV:
- RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr/lib/ruby/gems/1.8 - /home/jdezenzio/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["RubyGems.org | your community gem host, "http://gems.github.com", "http://gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com