cloudfoundry/vcap — Issue #195: rails_environment: production issue
Author: lukebakken
Created: 2012-03-09 17:10:58+00:00
State: open

http://support.cloudfoundry.com/entries/20212107-cloud-controller-yml-production-mode

When configuring the cloud controller for production mode the "pg" gem file path is not being added to the load path, even though it should be based on the rails_environment setting. I've had to make the following change to the cloud controller Gemfile as a workaround:

# Databases
gem 'sqlite3'
gem 'pg' # Copied pg here

group :production do
gem 'pg'
...
...
end

Thanks -
Luke