postgresql - Heroku aborts rake:precompile when it requires database access -


some of project assets erbs (like file.js.coffee.erb) pull data database write up. database tables seems created ok, heroku keeps halting @ precompile error this:

could not connect server: connection refused     server running on host "127.0.0.1" , accepting     tcp/ip connections on port 5432? 

well, ok. searched in heroku devcenter , found an article explained happening due lack of config vars in environment. instruction run:

env rails_env=production database_url=scheme://user:pass@127.0.0.1/dbname bundle exec rake assets:precompile 2>&1 

so run command proper replacements, heroku's tollbelt (heroku run ...), putting postgresql scheme, filling user, pass, , dbname fields properly. then, again:

rake aborted! not connect server: connection refused     server running on host "127.0.0.1" , accepting     tcp/ip connections on port 5432?    (in /app/app/assets/javascripts/file.js.coffee.erb)/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:1208:in `initialize' 

seems suposed use real info heroku's automated database configurations, have no idea configurations.

i'm kinda stuck that. lend hand?

thanks much!

you can around enabling user-env-compile:

it's discouraged kind of needed in situation.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -