# Set up gems listed in the Gemfile.
#ENV['BUNDLE_GEMFILE'] ||= File.expand_path(‘../../Gemfile’, __FILE__)
#require ‘bundler/setup’ if File.exists?(ENV['BUNDLE_GEMFILE'])
# Set up gems listed in the Gemfile.
GEMFILE_PATH = File.expand_path(‘../../Gemfile’, __FILE__)
if File.exist?(GEMFILE_PATH)
# Force the rails 3 application to use its Gemfile
ENV['BUNDLE_GEMFILE'] = GEMFILE_PATH
require ‘bundler’
Bundler.setup
end
My app is getting checkout properly.Problem comes when running rake task.
Now when i go into the build and run the task it is getting properly executed.
]]>
GEMFILE_PATH = File.expand_path('../../Gemfile', File.dirname(__FILE__))