我覺得我的Procfile有麻煩。我不能老是部署我在Heroku上的應用程序,始終在日誌中獲得此:部署在heroku上的Java應用程序
2016-03-25T12:46:43.601893+00:00 heroku[web.1]: Starting process with command
java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port 45751 target/*.war
2016-03-25T12:46:46.615217+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2016-03-25T12:46:46.617375+00:00 app[web.1]: Error: Unable to access jarfile target/dependency/webapp-runner.jar 2016-03-25T12:46:47.819108+00:00 heroku[web.1]: Process exited with status 1 2016-03-25T12:46:47.877603+00:00 heroku[web.1]: State changed from starting to crashed
這是我Procfile: 網站:JAVA $ JAVA_OPTS罐子目標/依賴/ webapp的-runner.jar --port $ PORT目標/ *。戰爭
這是我的項目上gitHub
現在我收到此 > 2016-03-28T10:57:57.397887 + 00:00的Heroku [路由器]:在=錯誤代碼= H12 DESC = 「請求超時」 方法= GET路徑=「/目錄/獲取「host = murmuring-shore.herokuapp.com request_id = 0a40ddbd-1f49-4b72-a287-22d5a6364540 fwd =」myIP「dyno = web.1 connect = 1ms service = 30000ms status = 503 bytes = 0 – BigBadDev
An [H12錯誤](https://devcenter.heroku.com/articles/error-codes#h12-request-timeout)表示請求在30秒後超時。這聽起來像應用程序正在運行,但其他的是錯誤的。 – codefinger