【发布时间】:2016-11-25 17:11:47
【问题描述】:
请帮助我在 Heroku 上部署我的应用程序。 从 Heroku 获取错误消息 *
“应用程序错误。应用程序和您的页面发生错误 无法送达。请稍后重试。如果你是 应用程序所有者,请查看您的日志以了解详细信息。”
这里是 Heroku 的日志:
2016-07-21T22:11:30.966800+00:00 heroku[slug-compiler]: Slug compilation
started 2016-07-21T22:11:30.773385+00:00 heroku[api]: Release v8 created by
zzheads@gmail.com 2016-07-21T22:11:56.184847+00:00 heroku[router]: at=error
code=H14 desc="No web processes running" method=GET path="/favicon.ico"
host=zzheads-countries.herokuapp.com request_id=a03c9276-b038-4f9f-8e6d-
5f29f14b441 fwd="5.3.141.153" dyno= connect= service= status=503 bytes=
我的 gradle 构建文件:
group 'com.zzheads'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.3.6.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
}
task stage {
dependsOn build
}
还有我的 Proc 文件:
web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/countries-1.0-SNAPSHOT.jar
【问题讨论】:
-
如何在本地运行您的应用程序?
-
从 IntellyJ IDEA IDE 中,只需点击 Run 'countries [bootRun]' ..
标签: java heroku gradle web-deployment procfile