Investigate Rails and Ember connection
Closed this issue · 1 comments
getaclue00 commented
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 theen0
adapter) - start your rails server binding to
0.0.0.0
asrails 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
andauthenticators/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.
getaclue00 commented
Found this useful when debugging this - http://serverfault.com/a/229450