3
我想在Heroku的測試模式下啓動我的Play應用程序,這可能嗎? 我加入這個Procfile:是否有可能在Heroku上的測試模式下啓動Play框架
web: play test --http.port=$PORT $PLAY_OPTS
但是當我啓動服務器,我可以在Hereoku日誌中看到這一點。
←[32m2012-01-15T19:11:04+00:00 heroku[web.1]:←[0m State changed from crashed to created
←[32m2012-01-15T19:11:04+00:00 heroku[web.1]:←[0m State changed from created to starting
←[32m2012-01-15T19:11:16+00:00 heroku[web.1]:←[0m Starting process with command `play test --http.port=19429 --%prod -Dprecompiled=true
`
←[32m2012-01-15T19:11:17+00:00 app[web.1]:←[0m Listening for transport dt_socket at address: 8000
←[32m2012-01-15T19:11:18+00:00 app[web.1]:←[0m 19:11:18,040 INFO ~ Starting /app
←[32m2012-01-15T19:11:18+00:00 heroku[web.1]:←[0m Error R11 (Bad bind) -> Process bound to port 8000, should be 19429 (see environment
variable PORT)
←[32m2012-01-15T19:11:18+00:00 heroku[web.1]:←[0m Stopping process with SIGKILL
←[32m2012-01-15T19:11:18+00:00 app[web.1]:←[0m 19:11:18,048 INFO ~ Module scala is available (/app/modules/scala-0.9.1)
←[32m2012-01-15T19:11:19+00:00 heroku[web.1]:←[0m State changed from starting to crashed
←[32m2012-01-15T19:11:19+00:00 heroku[web.1]:←[0m Process exited
我想這是因爲遊戲採用jpda.port = 8000默認和Heroku的使用默認參數崩潰。他們的文檔根本不會評論測試模式,所以有人在Heroku的測試模式下成功開始玩遊戲?我想我需要在proc文件中需要類似--jpda.port=$PORT2