我正在尝试将我的应用程序部署到Heroku,但我的应用程序已经崩溃了。以下是错误信息:
at=error code=H10 desc="App crashed" method=GET path="/"
host=smartmed2017.herokuapp.com request_id=3e8cc17e-320b-4230-bdbb-
3a751e3477de fwd="195.19.247.73" dyno= connect= service= status=503
bytes= protocol=https
2017-06-01T11:17:42.380548+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=smartmed2017.herokuapp.com request_id=9ab6574e-3fed-4af3-9cae-
0651e13d9112 fwd="195.19.247.73" dyno= connect= service= status=503
bytes= protocol=https
通常情况下,但是这个问题的原因可能不同。
这是Main.class文件。
@Controller
@SpringBootApplication
public class Main
{
public static void main(String[] args) throws Exception {
SpringApplication.run(Main.class, args);
}
@RequestMapping("/")
String index() {
return "index";
}
}
Procfile:
web: java -Dserver.port=$PORT -jar target/untitled-1.0-SNAPSHOT.jar
heroku logs -t
并捕获JVM的错误消息? - codefinger