解決したいこと
webアプリケーションを作成しました。
ターミナルでgit push heroku masterを
入力すると、
以下のエラーが表示されます。
remote: Tasks: TOP => assets:precompile remote: (See full trace by running task with --trace) 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: 8eb522ce66b0691a2b6280de6b3cfdcc6ac9f087 remote: ! remote: ! We have detected that you have triggered a build from source code with version 8eb522ce66b0691a2b6280de6b3cfdcc6ac9f087 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 cipher-35487. remote: To https://git.heroku.com/cipher-35487.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/cipher-35487.git'
herokuに関する知識が乏しいの何故デプロイできないのか全くわかりません。
どなたか解決に向けてアドバイスいただけないでしょうか?
追記
git push heroku mainを行うと
以下のようなエラーが発生します。
error: src refspec main does not match any error: failed to push some refs to 'https://git.heroku.com/cipher-35487.git'
build log
省略 rake aborted! Sass::SyntaxError: wrong number of arguments (1 for 3) for `rgb' (sass):570 省略 Tasks: TOP => assets:precompile (See full trace by running task with --trace) ! ! Precompiling assets failed. ! ! Push rejected, failed to compile Ruby app. ! Push failed
長文で申し訳ありません。
build logの中に
rake aborted! Sass::SyntaxError: wrong number of arguments (1 for 3) for `rgb'
と記載があったので、恐らくここで
ひっかかってるのかなと思っているのですが、
rgbとはどこを指しているのかさっぱりわかりません。
あなたの回答
tips
プレビュー