我有煉油廠的應用程序,在本地很棒。 在Heroku上創建了一個竹棧。推送到Heroku時出現煉油廠錯誤
當我試圖把我能看到這一點:
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?
然後我在瀏覽器中打開它: 「很抱歉,但出事了。」
$ Heroku的日誌
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
全輸出爲here
任何幫助是巨大的,謝謝!
+++
更新:
更新堆棧雪松和紅寶石製成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: [email protected]:mimacohuoncedar.git
Owner: ..
Repo Size: 9M
Slug Size: 19M
Stack: cedar
Web URL: http://mimacohuoncedar.herokuapp.com/
$ Heroku的日誌現在顯示這一點: this-updated
在哪裏繼續?謝謝
感謝您的幫助,終於得到了!分享,因爲也許其他人會有同樣的問題:有3個問題:首先我需要Cedar和_not_ Bamboo堆棧。然後我用「heroku run rake db:migrate」遷移了數據庫。最後我用了你提到的文章。非常感謝,它現在起作用! – YogiZoli 2012-04-02 21:52:15