我嘗試我的Rails應用程序推送到Heroku的,但遇到了以下錯誤
的Rails的Heroku應用程序錯誤
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
因爲我使用的sqlite3
在web顯示一個搜索我應該做到以下幾點
heroku rake db:create
heroku rake db:migrate
Heroku的耙分貝:創建抱怨
命令gem install activerecord-postgresql-adapter
失敗,抱怨
ERROR: Could not find a valid gem 'activerecord-postgresql-adapter' (>= 0) in any repository
ERROR: Possible alternatives: activerecord-postgis-adapter, activerecord-jdbcpostgresql-adapter, activerecord-postgresql-cursors, activerecord-jdbcmysql-adapter, activerecord-jdbcmssql-adapter
然後我又在網上搜索,並遵循http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development建議改變
gem 'sqlite3'
到
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
和運行
bundle install --without production
然而這並沒有解決另一個來源說,我需要做的像
group :production do
gem 'therubyracer-heroku', '0.8.1.pre3'
gem "pg"
end
這也沒能解決問題
我有我的系統上安裝postresql問題 。 那到底是什麼問題?
沒有這個不斷得到解決? – Laser 2012-05-22 16:53:04