Herokuでgit push heroku masterでデプロイしようとしたところ以下のエラーが出てしまいました
使い始めたばかりでqiitaなどで調べても分かりません
何がいけないのでしょうか?
参考にした記事です
heroku デプロイ方法
https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39
調べた記事
https://www.virtual-surfer.com/entry/2018/07/15/104519
https://qiita.com/tanaka-t/items/c0780255aa58e2cd52e2
宜しくお願いいたします
Enumerating objects: 959, done. Counting objects: 100% (959/959), done. Delta compression using up to 4 threads Compressing objects: 100% (910/910), done. Writing objects: 100% (959/959), 137.57 KiB | 2.87 MiB/s, done. Total 959 (delta 564), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-nodejs remote: remote: ! ERROR: Application not supported by 'heroku/nodejs' buildpack remote: ! remote: ! The 'heroku/nodejs' buildpack is set on this application, but was remote: ! unable to detect a Node.js codebase. remote: ! remote: ! A Node.js app on Heroku requires a 'package.json' at the root of remote: ! the directory structure. remote: ! remote: ! If you are trying to deploy a Node.js application, ensure that this remote: ! file is present at the top level directory. This directory has the remote: ! following files: remote: ! remote: ! app/ remote: ! bin/ remote: ! config/ remote: ! config.ru remote: ! db/ remote: ! Gemfile remote: ! Gemfile.lock remote: ! lib/ remote: ! log/ remote: ! public/ remote: ! Rakefile remote: ! README.md remote: ! spec/ remote: ! test/ remote: ! tmp/ remote: ! vendor/ remote: ! remote: ! If you are trying to deploy an application written in another remote: ! language, you need to change the list of buildpacks set on your remote: ! Heroku app using the 'heroku buildpacks' command. remote: ! remote: ! For more information, refer to the following documentation: remote: ! https://devcenter.heroku.com/articles/buildpacks remote: ! https://devcenter.heroku.com/articles/nodejs-support#activation remote: remote: remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to whispering-ridge-73721. remote: To https://git.heroku.com/whispering-ridge-73721.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/whispering-ridge-73721.git'
回答1件
あなたの回答
tips
プレビュー