我尝试我的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