简体   繁体   English

Grails 3:无法推送到Heroku

[英]Grails 3: Can't push to heroku

I was pushing the current git repository into the heroku. 我正在将当前的git存储库推送到heroku中。 That online application was developed using Grails 3 and IntelliJ. 该在线应用程序是使用Grails 3和IntelliJ开发的。 And I don't know how to fix this error. 而且我不知道如何解决此错误。

Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (5/5), 400 bytes | 0 bytes/s, done.
Total 5 (delta 0), reused 5 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/gradle.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to desolate-springs-99606.
remote: 
To https://git.heroku.com/desolate-springs-99606.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/desolate-springs-99606.git'

The errors says that your app is not compatible with Gradle buildpack. 该错误表明您的应用程序与Gradle buildpack不兼容。 I am not familiar with Grails framework and how can you deploy it to Heroku, so I can't give you specific answer. 我对Grails框架以及如何将其部署到Heroku并不熟悉,因此我无法为您提供具体答案。 But you should follow instructions for Gradle buildpack . 但是您应该遵循Gradle buildpack的说明 Buildpack is checking for three files gradlew , build.gradle or settings.gradle . Buildpack正在检查gradlewbuild.gradlesettings.gradle三个文件。 If you already have those files in your app's directory, make sure they are committed. 如果您的应用程序目录中已经有这些文件,请确保已提交。

Heroku only detect automatically Grails 2.0 apps. Heroku仅自动检测Grails 2.0应用程序。

To deploy a Grails 3.0 you need to follow Deploying Gradle Apps#Grails-3 要部署Grails 3.0,您需要遵循Deploying Gradle Apps#Grails-3

Basically you need to add some tasks into your gradle.build and create a Procfile 基本上,您需要将一些任务添加到gradle.build中并创建一个Procfile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM