【发布时间】:2016-12-14 22:35:56
【问题描述】:
我正在将当前的 git 存储库推送到 heroku。 该在线应用程序是使用 Scala 和 IntelliJ 开发的。 而且我不知道如何解决这个错误。
$ git push heroku master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 531 bytes | 0 bytes/s, done.
Total 3 (delta 0), 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 salty-coast-14102.
remote:
To https://git.heroku.com/salty-coast-14102.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/salty-coast-14102.git'
【问题讨论】:
-
您是否指定了
package.json? -
package.json适用于 Node.js 应用程序,但这似乎是一个 Scala 应用程序。
标签: git scala heroku intellij-idea