Ruby on Railsをherokuにデプロイしたのですが、エラーがでてしまいました
解決したいこと
Could't find a package.jsonです。
発生している問題・エラー
remote: yarn run v1.22.17
remote: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
remote:
remote:
remote: error Couldn't find a package.json file in "/tmp/build_e9176431"
remote:
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: adb6518f999217c499c0b95383f5ac8ae9e4d1e7
remote: !
remote: ! We have detected that you have triggered a build from source code with version adb6518f999217c499c0b95383f5ac8ae9e4d1e7
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku <branchname>:main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to warm-plateau-91068.
remote:
To https://git.heroku.com/warm-plateau-91068.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/warm-plateau-91068.git'
aruka@AYASAKA:C:\Users\aruka\sample_app$git push heroku main
error: src refspec main does not match any
error: failed to push some refs to 'https://git.heroku.com/warm-plateau-91068.git'
自分で試したこと
検索しましたが、Railsではなく、Node.jsが検索されるのでよくわかりません。
0 likes