Search code examples
ruby-on-rails-3herokuruby-on-rails-3.2refinerycmsbamboo

Refinery error when pushing to Heroku


I've a Refinery app, works great locally. Created a bamboo stack on Heroku.

When I try to push I can see this:

Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       rake aborted!
       could not connect to server: Connection refused
       Is the server running on host "127.0.0.1" and accepting
       TCP/IP connections on port 5432?

Then I open it up in browser: "We're sorry, but something went wrong."

$ heroku logs

Rendered vendor/bundle/ruby/1.9.1/gems/refinerycms-authentication-2.0.2/app/views/refinery/users/new.html.erb within refinery/layouts/login (82.3ms)
2012-03-15T14:43:25+00:00 app[web.1]: Completed 500 Internal Server Error in 1269ms

full output is here

Any help is great, thanks!

+++

Update:

Updated the stack to Cedar and made Ruby env 1.9.3

$ heroku config
DATABASE_URL        => ..
GEM_PATH            => vendor/bundle/ruby/1.9.1
LANG                => en_US.UTF-8
PATH                => bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
RACK_ENV            => production
RAILS_ENV           => production
RUBY_VERSION        => ruby-1.9.3-p0
SHARED_DATABASE_URL => ..

$ heroku info --app mimacohuoncedar
=== mimacohuoncedar
Addons:        Basic Logging, Shared Database 5MB
Database Size: (empty)
Git URL:       git@heroku.com:mimacohuoncedar.git
Owner:         ..
Repo Size:     9M
Slug Size:     19M
Stack:         cedar
Web URL:       http://mimacohuoncedar.herokuapp.com/

$ heroku logs now shows this: this-updated

Where to go on? Thanks


Solution

  • Dont know if you managed to fix this but I ran into the same issue using the Cedar stack. Found this article on Heroku that seemed to do the trick for me. Ran the line in terminal and it pushed first time.