2013-06-21 49 views
2

嗨我其實是試圖在Heroku上部署話語。 我正在按照這裏的步驟指南Basic Heroku deployment 當我試圖耙資產時,我遇到了一個問題:預編譯(我在本地預編譯)。 rake命令被中止,對我說那Heroku部署:Discourse Assets預編譯

No such file or directory: mydirectories/discourse/config/database.yml 

當我耙資產:預編譯我在生產環境(RAILS_ENV =生產)。 所以我檢查了數據庫中是否缺少database.yml,是的。

我目前有兩個database.yml但有點不同。有database.yml.development-sample和 database.yml.production-sample。

我試圖重新命名database.yml.production樣本一個簡單的database.yml,但它仍然無法正常工作給我這個錯誤:

could not connect to server: No such file or directory 

Is the server running locally and accepting 

connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? 

我在做什麼錯?

親切, 羅布

PS:配置/ redis.yml和公共/入資產的.gitignore

回答

相關問題