Note that there are some explanatory texts on larger screens.

plurals
  1. POWeinre on heroku
    text
    copied!<p>I am trying to set up <a href="http://people.apache.org/~pmuellr/weinre/" rel="nofollow">Weinre</a> on <a href="http://www.heroku.com" rel="nofollow">heroku</a> but I am having some issues.</p> <p>I manage to build the app, simply by using a package.json with weinre npm dependency and a Procfile that looks like the following</p> <pre><code>web: node_modules/weinre/weinre --httpPort $PORT </code></pre> <p>At first everything seems to work, the client shows up the UI, the JS file loads fine, but the debug does not work and no client ever shows up at the server side. </p> <p>While looking at the logs, I realized that I keep getting 404 errors for every request that contains /ws/target/* or /ws/client/*</p> <pre><code>2012-05-31T22:37:53+00:00 heroku[router]: GET xxxx.herokuapp.com/target/target-script.js dyno=web.1 queue=0 wait=0ms service=10ms status=200 bytes=190900 2012-05-31T22:37:36+00:00 heroku[router]: GET xxxx.herokuapp.com/ws/target/t-3 dyno=web.1 queue=0 wait=0ms service=3ms status=404 bytes=9 2012-05-31T22:36:39+00:00 heroku[router]: POST xxxx.herokuapp.com/ws/client/c-1 dyno=web.1 queue=0 wait=0ms service=40ms status=404 bytes=9 </code></pre> <p>This setup works localy with no problem.</p> <p>I also tried the Procilfe with <code>--boundHost 0.0.0.0</code> and got the same error. when I use my heroku app domain/subdomain as the host I got <code>weinre: error running server: Error: listen EADDRNOTAVAIL</code> error</p> <p>If needed, you can checkout the source at the <a href="https://github.com/felipesabino/weinre-heroku" rel="nofollow">github repo</a></p> <p><a href="https://github.com/felipesabino/weinre-heroku" rel="nofollow">https://github.com/felipesabino/weinre-heroku</a></p> <p>EDIT: It is possible that it is related to WebSockets not being supported on Heroku: <a href="https://devcenter.heroku.com/articles/http-routing#websockets" rel="nofollow">https://devcenter.heroku.com/articles/http-routing#websockets</a></p> <p>The weirdest thing is that the same issue happens with PhoneGap's weinre debug page as well <a href="http://debug.phonegap.com/" rel="nofollow">http://debug.phonegap.com/</a></p> <p>Does anybody know how to solve this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload