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

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

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

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

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Q&A

解決済

1回答

1521閲覧

Heroku エラー

yakumo02

総合スコア103

Heroku

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

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

0グッド

1クリップ

投稿2019/12/16 01:59

編集2019/12/16 02:59

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'

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

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

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

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

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

yakumo02

2019/12/16 03:00 編集

なぜか丸投げという意見がきたので調べた記事を載せました
tomy-c

2019/12/16 03:01

おそらくどんな調べ方をしたのか(Qiitaだけ?どんな検索?)、なにか対策を講じてみて駄目だったのか明記していない(ちょっと調べて駄目だったなら丸投げと言われてもしょうがない)ので丸投げに見えているのでは?
guest

回答1

0

ベストアンサー

ログ読みましたか? 結構事細かに原因書いてありますよ。

リモート:!エラー:アプリケーションが「heroku / nodejs」ビルドパックでサポートされていません リモート:! リモート:! 「heroku / nodejs」ビルドパックはこのアプリケーションに設定されていますが、 リモート:! Node.jsコードベースを検出できません。 リモート:! リモート:! HerokuのNode.jsアプリでは、ルートの 'package.json'が必要です リモート:!ディレクトリ構造。 リモート:! リモート:! Node.jsアプリケーションをデプロイしようとしている場合は、これを確認してください リモート:!ファイルは最上位ディレクトリにあります。このディレクトリには リモート:!以下のファイル: リモート:! リモート:!アプリ/ リモート:! bin / リモート:! config / リモート:! config.ru リモート:! db / リモート:! Gemfile リモート:! Gemfile.lock リモート:! lib / リモート:!ログ/ リモート:!パブリック/ リモート:!熊手 リモート:! README.md リモート:! spec / リモート:!テスト/ リモート:! tmp / リモート:!ベンダー/ リモート:! リモート:!別に書かれたアプリケーションをデプロイしようとしている場合 リモート:!言語、あなたはあなたに設定されたビルドパックのリストを変更する必要があります リモート:! 「heroku buildpacks」コマンドを使用したHerokuアプリ。 リモート:! リモート:!詳細については、次のドキュメントを参照してください。 リモート:! https://devcenter.heroku.com/articles/buildpacks リモート:! https://devcenter.heroku.com/articles/nodejs-support#activation リモート: リモート: リモート:詳細:https://devcenter.heroku.com/articles/buildpacks#detection-failure リモート: リモート:!プッシュに失敗しました リモート:デプロイを検証しています... リモート: リモート:! pushはwhispering-ridge-73721に拒否されました。 リモート: https://git.heroku.com/whispering-ridge-73721.gitへ  ! [リモート拒否]マスター->マスター(事前受信フックは拒否されました) エラー:「https://git.heroku.com/whispering-ridge-73721.git」への参照のプッシュに失敗しました

おそらくここの内容と同じ方法で解決出来るんじゃないでしょうか?
stackoverflow
Why does Heroku fail to detect Node.js buildpack?

投稿2019/12/16 02:58

tomy-c

総合スコア179

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問