Herokuでデプロイしようとした結果以下のようなエラーが出てしまいました
https://teratail.com/questions/132715
これを実行したらエラーが出てきてしまいました
今日使い始めたばかりで、理解が難しいです
宜しくお願いします
Enumerating objects: 894, done. Counting objects: 100% (894/894), done. Delta compression using up to 4 threads Compressing objects: 100% (845/845), done. Writing objects: 100% (894/894), 128.23 KiB | 3.46 MiB/s, done. Total 894 (delta 520), 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
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。