I tried to push a new application to the hero and skip this error PG::ConnectionBad: could not connect to server: Connection refused
This is my gemfile, is it related to this? I am using spree with postgress. I'm not sure, since this is the first time I tried to use spree in heroku, but it doesn't seem to work. Any help would be appreciated
source 'https://rubygems.org'
ruby "2.2.1"
gem 'puma', '~> 2.13.4'
gem 'braintree', '~> 2.48.1'
gem 'rails', '4.2.3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
gem 'spring'
end
group :production, :staging do
gem 'pg'
gem 'rails_12factor', '~> 0.0.3'
end
gem 'spree', '3.0.4'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
database.yml
default: &default
adapter: postgresql
encoding: unicode
pool: 5
development:
<<: *default
host: localhost
database: ****
username: ****
password: ****
test:
<<: *default
host: localhost
database: ****
username: ****
password: ****
production:
<<: *default
database: ****
username: ****
password: <%= ENV['DATABASE_PASSWORD'] %>
source
share