1

I got this error

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?

At precompilation, I know that one of the workaround is to put initialize_on_precompile to false but I do need my application to be initialized for my css to work.

This is the full error: 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? /tmp/build_3eatwoqg4vdl/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize'

Thanks!!

4

1 回答 1

0

您可以使用实验性实验室功能user-env-compile 启用此功能:

Heroku Labs 的这项功能添加了实验性支持,以在 slug 编译期间让应用程序的配置变量出现在环境中。

笔记:

通过实验室添加的功能是实验性的,可能会更改或删除,恕不另行通知。

于 2013-04-22T16:53:45.203 回答