Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with meteor.local when developing on mobile #109

Open
rclai opened this issue Oct 21, 2015 · 4 comments
Open

Issues with meteor.local when developing on mobile #109

rclai opened this issue Oct 21, 2015 · 4 comments

Comments

@rclai
Copy link
Contributor

rclai commented Oct 21, 2015

I'm trying to get this to work with mobile and for some reason http://meteor.local:9090/assets/client.bundle.js is not getting me the actual bundle script but is rather giving me the entire HTML mark-up of a Meteor app, which is not right. I had to hard-code the script embed in loadClientBundle.html to the DDP server's host address (i.e. 192.168.1.123:9090/assets/client.bundle.js), in order for it to work properly.

@jedwards1211
Copy link
Owner

I've never heard of this meteor.local thing being possible, is there documentation for it anywhere? I'd have to know how exactly it works to offer any support. Is this for Cordova? Whenever I've tested on mobile (though not Cordova) I type my dev machine's IP address into the URL bar (e.g. http://192.168.1.123:3000) and that works.

@rclai
Copy link
Contributor Author

rclai commented Oct 29, 2015

Yes, when you fire up a Meteor Cordova app, the host designated is meteor.local, it's how they implemented it. We'd have to dig into the code to see how that works.

@rclai
Copy link
Contributor Author

rclai commented Oct 29, 2015

Check this out.

@rclai
Copy link
Contributor Author

rclai commented Oct 29, 2015

I guess we can detect meteor.local on loadClientBundle.html, but then we'd have to somehow get the host of the DDP server somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants