Perhaps this is because you aren't listening to the right interface. It
should be 0.0.0.0. Or this could be because you can only listen on one
port.
"The web process must listen on one and only one port. The port must be
the one specified in the $PORT variable. If your process listens on
other ports, it will be shut down by Heroku."
http://devcenter.heroku.com/articles/java-faq
Hope that helps.
-James
On 03/20/2012 06:29 PM, tarzankun wrote:
Hello,
I have a script called start-server.sh that would start a Java process
and listening on some ports. It works correctly locally but it failed
once deployed to Heroku.
%> heroku run "sh target/classes/start-server.sh"
Running sh target/classes/start-server.sh attached to terminal... /usr/
local/heroku/lib/heroku/client/rendezvous.rb:33:in `initialize':
Network is unreachable - connect(2) (Errno::ENETUNREACH)
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:33:in `open'
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:33:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/timeout.rb:62:in `timeout'
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:27:in `start'
from /usr/local/heroku/lib/heroku/command/run.rb:35:in `index'
from /usr/local/heroku/lib/heroku/command.rb:129:in `send'
from /usr/local/heroku/lib/heroku/command.rb:129:in `run'
from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:28
I have no idea how to proceed from here with this error message.
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.