[remote rejected] master -> master (pre-receive hook declined)というエラーが出て、デプロイすることができません
私のやったこととしては、githubにリポジトリ作成→ファイルアップロードでデプロイしたいファイルを一式ドラッグしてアップロード→git cloneでURL貼り付けてローカルにディレクトリ作成→heroku create→git push heroku master(ここでエラー)
という感じです
同様のエラーが出た人の対策を参考にしましたが、特に結果に変わりなしでした
heroku自体使うのが初めてで、どうしてうまくいかないのかよくわかりません
他のファイルで試してみてもダメだったので、おそらくgithub側の設定がおかしいような気がします
どなたかアドバイスいただけると幸いです
追記:
エラー文は文頭のものに加え
error: failed to push some refs to ...
というものです
追記:全文です
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 12 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 3.83 KiB | 3.83 MiB/s, done.
Total 7 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to アプリ名.
remote:
To https://git.heroku.com/[...].git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://.....'
デフォルトの言語じゃないと言われているので
こちらを試したところ
error: src refspec master does not match any
error: failed to push some refs to 'アドレス.git'
とのことでした
よろしくお願いします
追記:
すみません忘れていました
試したのはHTML+javascriptのもとのjspのものでした
ご指摘の通りそのままではアップできないようです
カスタムパック探してまた試してみます


回答1件
あなたの回答
tips
プレビュー