我正在改变Heroku,我得到…
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?
当我查阅Heroku文档Here时,它告诉我需要“在本地配置/ database.yml中配置不存在的数据库”我不知道如何创建一个“不存在的数据库”?我是一个初学者,感谢您能给我的任何帮助.谢谢.
解决方法
在Heroku上,您必须在config / application.rb中设置此行:
config.assets.initialize_on_precompile = false
http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets
For faster asset precompiles,you can partially load your application
by setting config.assets.initialize_on_precompile to false in
config/application.rb,though in that case templates cannot see
application objects or methods. Heroku requires this to be false.