Created
July 22, 2008 21:39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* executing "cd /data/cims/releases/20080722212302; rake RAILS_ENV=production db:migrate" | |
servers: ["65.74.174.196"] | |
[65.74.174.196:8214] executing command | |
** [out :: 65.74.174.196:8214] (in /data/cims/releases/20080722212302) | |
** [out :: 65.74.174.196:8214] rake aborted! | |
** [out :: 65.74.174.196:8214] | |
** [out :: 65.74.174.196:8214] undefined method `require_gem' for main:Object | |
** [out :: 65.74.174.196:8214] | |
** [out :: 65.74.174.196:8214] /data/cims/releases/20080722212302/Rakefile:4 | |
** [out :: 65.74.174.196:8214] | |
** [out :: 65.74.174.196:8214] (See full trace by running task with --trace) | |
** [out :: 65.74.174.196:8214] | |
command finished |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version | |
# Asking for 1.1.6 will give you 1.1.6.5206, if available -- makes it easier to use beta gems | |
rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last | |
if rails_gem | |
require_gem "rails", "=#{rails_gem.version.version}" | |
require rails_gem.full_gem_path + '/lib/initializer' | |
else | |
STDERR.puts %(Cannot find gem for Rails ~>#{version}.0: | |
Install the missing gem with 'gem install -v=#{version} rails', or | |
change environment.rb to define RAILS_GEM_VERSION with your desired version. | |
) | |
exit 1 | |
end | |
else | |
require_gem "rails" | |
require 'initializer' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment