mariusbutuc / faye-poc

Faye: Proof of Concept
0 stars 0 forks source link

Use Faye in a separate Heroku app #1

Open mariusbutuc opened 11 years ago

mariusbutuc commented 11 years ago

For the free Heroku account, the 750 free dyno-hours are enough for 1 dyno (process)/ month — that's enough for the Rails server.

We can scale to more than one web dyno, and use the second for the Faye server.

For starters, isolate Faye in a separate Heroku app.

mariusbutuc commented 11 years ago

All works well on local machine with Faye server embedded on port :9292.

As soon as connecting to remote Faye server hosted on Heroku, 2 issues:

  1. Unexpected response code: 400
  2. XMLHttpRequest cannot load http://wts-faye.herokuapp.com/faye. Origin http://lvh.me:3000 is not allowed by Access-Control-Allow-Origin.

Using Faye in a separate Heroku app

guilb commented 10 years ago

i got the same error, did you fix it ?

guilb commented 10 years ago

it's ok, i found the solution ;)