ローカルで正しく動作するRuby1.8.7アプリケーションがあります。Herokuにロードするために、データベースをSQLiteからPostgreSQLに変更し、PostgreSQL 9.1.3をインストールし、gemsqlite3を次のように置き換えてGemfileを変更しました。
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
そして、の部品生産を変更config/database.ymlします:
production:
adapter: postgresql
database: project_production
pool: 5
timeout: 5000
その後、bundle install --without production正常に実行されます。次に、次のコマンドでgitリポジトリを作成しました。
git init
git add *
git commit -m "text"
後で、を使用してherokuアプリケーションを作成し、正常に作成しheroku create --stack bamboo-ree-1.8.7ましgit push heroku masterたheroku rake db:migrate。
しかし、それはうまくいきませんでした!
何が欠けていますか?私は何か間違ったことをしましたか、それとも何も言明していませんか?