English 中文(简体)
谢库应用(使用游戏框架)
原标题:Application Error in heroku (using play framework)

I m using play-1.2.4 framework in java and using MongoDB database. Pushing the project in heroku repositary successfully. And try to open my page, I still see an Error: Application Error

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

一进入<代码>herokulogs的指令时,发现以下错误:

heroku logs
   2012-05-05T06:00:13+00:00 app[web.1]: ~        _            _
2012-05-05T06:00:13+00:00 app[web.1]: ~  _ __ | | __ _ _  _| |
2012-05-05T06:00:13+00:00 app[web.1]: ~ |  __/|_|\____|\__ (_)
2012-05-05T06:00:13+00:00 app[web.1]: ~ |  _ | |/ _  | || |_|
2012-05-05T06:00:13+00:00 app[web.1]: ~ |_|            |__/
2012-05-05T06:00:13+00:00 app[web.1]: ~
2012-05-05T06:00:13+00:00 app[web.1]: ~ play! 1.2.4, http://www.p
layframework.org
2012-05-05T06:00:13+00:00 app[web.1]: ~ framework ID is prod
2012-05-05T06:00:13+00:00 app[web.1]: ~ Ctrl+C to stop
2012-05-05T06:00:13+00:00 app[web.1]: ~
2012-05-05T06:00:13+00:00 app[web.1]: ~
2012-05-05T06:00:13+00:00 app[web.1]:
2012-05-05T06:00:14+00:00 heroku[web.1]: Process exited with stat
us 0
2012-05-05T06:00:14+00:00 heroku[web.1]: State changed from start
ing to crashed
2012-05-05T06:05:17+00:00 heroku[run.1]: State changed from creat
ed to starting
2012-05-05T06:05:19+00:00 app[run.1]: Awaiting client
2012-05-05T06:05:20+00:00 heroku[run.1]: State changed from start
ing to up
2012-05-05T06:05:49+00:00 app[run.1]: Error R13 (Attach error) ->
 Failed to attach to process
2012-05-05T06:05:50+00:00 heroku[run.1]: Process exited with stat
us 1
2012-05-05T06:05:50+00:00 heroku[run.1]: State changed from up to
 complete

当使用<代码>heroku p管理 her时,它向我表明:

Process  State           Command
-------  --------------  ------------------------------------
web.1    crashed for 5m  play run --http.port=$PORT $PLAY_O..

一如操作<条码>okuher 运行灯光/条码>,我发现以下错误:

终端附属的停电灯......

C:/Program Files/Heroku/l ib/heroku/client/rendezvous.rb:33:in `initialize : A connection a ttempt failed because the connected party did not properly respon d after a period of time, or established connection failed becaus e connected host has failed to respond. - connect(2) (Errno::ETIM EDOUT)
        from C:/Program Files/Heroku/lib/heroku/client/rendezvous .rb:33:in `open 
        from C:/Program Files/Heroku/lib/heroku/client/rendezvous .rb:33:in `block in start 
        from C:/Program Files/ruby-1.9.3/lib/ruby/1.9.1/timeout.r b:58:in `timeout 
        from C:/Program Files/Heroku/lib/heroku/client/rendezvous .rb:27:in `start 
        from C:/Program Files/Heroku/lib/heroku/command/run.rb:35 :in `index 
        from C:/Program Files/Heroku/lib/heroku/command.rb:148:in  `run 
        from C:/Program Files/Heroku/lib/heroku/cli.rb:9:in `star t 
        from C:/Program Files/Heroku/bin/heroku:28:in `<main> 

这里我错了什么? 任何人都能够帮助我这样做。

最佳回答

您需要在Heroku的%prod模式中开展游乐活动。 保证在您的<代码>-%prod中加入。 样本<编码>Procfile:

web:    play run -Xmx256M --%prod --http.port=$PORT -Dprecompiled=true
问题回答

暂无回答




相关问题
Packaging precompiled binaries inside of a gem

I ve got a ruby web app that uses lilypond to generate sheet music based on user input. I d like to move the hosting to heroku (I ve recently used heroku on a few projects and really liked it, plus ...

ActiveScaffold on Heroku s read-only file system?

ActiveScaffold apparently creates public/blank.html every time the server starts, even if that file already exists (so adding it to version control doesn t help). This is causing my application to ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

PostgreSQL GROUP BY different from MySQL?

I ve been migrating some of my MySQL queries to PostgreSQL to use Heroku. Most of my queries work fine, but I keep having a similar recurring error when I use group by: ERROR: column "XYZ" must ...

热门标签