質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

611閲覧

SyntaxErrorでデプロイできない

hayatoganbaru

総合スコア7

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/08/03 11:23

編集2021/08/04 09:32

解決したいこと

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とはどこを指しているのかさっぱりわかりません。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hayatoganbaru

2021/08/03 11:44

git push heroku mainを行った際の挙動を質問に編集し載せました。 よろしければご確認いただけないでしょうか。
hoshi-takanori

2021/08/04 09:37

sass ファイルにエラーがあると言ってるようですが…。
hayatoganbaru

2021/08/04 09:38

引き続きのご回答ありがとうございます。 読んでみてもsassのファイルのどれがどうなのかさっぱりわかりません。 すみません。
hayatoganbaru

2021/08/05 09:14

rgbの部分いじったらエラー解消できました。 ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問