이국화*_*이국화 60 git scala heroku intellij-idea
我正在将当前的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'
Run Code Online (Sandbox Code Playgroud)
Cod*_*ard 41
阅读本文档,它将向您解释如何操作.
https://devcenter.heroku.com/articles/buildpacks
在应用程序上设置buildpack
您可以通过设置buildpack值来更改应用程序使用的buildpack.
下次推送应用程序时,将使用新的buildpack.Run Code Online (Sandbox Code Playgroud)$ heroku buildpacks:set heroku/phpBuildpack集.random-app-1234上的下一个版本将使用heroku/php.
运行git push heroku master以使用此buildpack创建新版本.
这是因为你没有设置它,它不适合你.
...当下次推送应用程序时,将使用新的buildpack.
You may also specify a buildpack during app creation:
$ heroku create myapp --buildpack heroku/python
Run Code Online (Sandbox Code Playgroud)
Cis*_*idx 11
.git项目的根目录中必须有一个目录.
如果您没有看到该目录运行git init,然后重新关联您的远程.
像这样:
heroku git:remote -a herokuAppName
git push heroku master
Run Code Online (Sandbox Code Playgroud)
mar*_*xor 11
如果你是一个python用户-
创建一个requirements.txt文件,最好使用pip freeze > requirements.txt。
添加、提交并再次尝试推送。
如果这不起作用,请尝试删除.git(请注意这可能会删除关联的 git 历史记录)并再次执行上述步骤。
为我工作。
| 归档时间: |
|
| 查看次数: |
72253 次 |
| 最近记录: |