git push heroku master した後
Counting objects: 200, done.
Compressing objects: 100% (174/174), done.
Writing objects: 100% (200/200), 605.74 KiB | 6.51 MiB/s, done.
Total 200 (delta 29), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to guarded-journey-56277.
remote:
To https://git.heroku.com/guarded-journey-56277.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/guarded-journey-56277.git'
となりデプロイ出来ません。
DBを開発ではsqlite3だが本番ではpostgres に変える必要があるということで
gem 'sqlite3', '~> 1.4', groups: %w(test development), require: false
gem 'pg', groups: %w(production), require: false
として bundle install し
config/database.yml で
production:
adapter: postgresql
url: <%= ENV['DATABASE_URL'] %>
と変更し heroku config で確認して
DATABASE_URL:は出てきているのでheroku-postgresqlはインストールはされています。
回答1件
あなたの回答
tips
プレビュー