不能推到heroku [英] Can't push to the heroku
问题描述
我将当前的git存储库推入heroku。
该在线应用程序是使用Scala和IntelliJ开发的。
我不知道如何解决这个错误。
$ git push heroku master
计数对象:3,完成。
使用多达4个线程的增量压缩。
压缩对象:100%(3/3),完成。
写入对象:100%(3/3),531字节| 0字节/秒,完成。
总计3(delta 0),重用0(delta 0)
remote:压缩源文件...完成。
远程:建立源:
远程:
远程:!这个应用程序没有检测到默认语言。
remote:HINT:当Heroku无法自动检测到此应用程序使用的buildpack时发生。
remote:请参阅https://devcenter.heroku.com/articles/buildpacks
remote:
remote:!推送失败
remote:验证部署....
remote:
remote:!推拒绝咸海岸-14102。
remote:
至https://git.heroku.com/salty-coast-14102.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:无法将一些文件推送到'https://git.heroku.com/salty-coast-14102.git'
阅读这份文件,它会向您解释做什么。
https://devcenter.heroku.com/articles/buildpacks
在应用程序中设置buildpack
您可以通过设置buildpack值来更改应用程序使用的buildpack。
当应用程序下一次推送时,将使用新的buildpack。$ heroku buildpacks:set heroku / php
Buildpack集。随机应用程序-1234的下一个版本将使用heroku / php。
运行git push heroku master
创建一个新的发布使用这个buildpack。
由于您没有设置它,因此它不适合您。
...当下一次推送应用程序时,将使用新的buildpack。
$ b 您也可以在创建应用程序时指定一个buildpack :
$ heroku创建myapp --buildpack heroku / python
I was pushing the current git repository into the heroku. That online application was developed using Scala and IntelliJ. And I don't know how to fix this error.
$ 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'
Read this doc which will explain to you what to do.
https://devcenter.heroku.com/articles/buildpacks
Setting a buildpack on an application
You can change the buildpack used by an application by setting the buildpack value.
When the application is next pushed, the new buildpack will be used.$ heroku buildpacks:set heroku/php
Buildpack set. Next release on random-app-1234 will use heroku/php.
Rungit push heroku master
to create a new release using this buildpack.
This is whay its not working for you since you did not set it up.
... When the application is next pushed, the new buildpack will be used.
You may also specify a buildpack during app creation
:
$ heroku create myapp --buildpack heroku/python
这篇关于不能推到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!