getaclue00/capstone

Investigate Rails and Ember connection

Closed this issue · 1 comments

Locally everything works fine.
However, when you want to test it with other devices, rails is not having a good time on mac for some reason. I haven't tested *nix or windows... so...

This is the temporary solution for mac

mac

  • type ifconfig and find your ip address (on my machine that is the en0 adapter)
  • start your rails server binding to 0.0.0.0 as rails s -b 0.0.0.0
  • manually change all references in Ember that references to localhost to the ip you found above. Currently this involves adapters/application.js and authenticators/devise.js files.

There has to be a different way as your ip is most likely to change...

Need to investigate... it seems more of a Rails issue than an Ember issue.

Found this useful when debugging this - http://serverfault.com/a/229450