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

unclear description of WhatsApp 2 tutorial step 3.15 #227

Closed
carstenbaumhoegger opened this issue Aug 11, 2016 · 1 comment
Closed

unclear description of WhatsApp 2 tutorial step 3.15 #227

carstenbaumhoegger opened this issue Aug 11, 2016 · 1 comment

Comments

@carstenbaumhoegger
Copy link
Contributor

There's a note after step 3.15 that says

NOTE: meteor-client-side will try to connect to localhost:3000 by default. To change it, simply set a global object named meteor_runtime_config with a property called DDP_DEFAULT_CONNECTION_URL and set whatever server url you'd like to connect to.

I tried to change the default port to http://myip:port by calling export DDP_DEFAULT_CONNECTION_URL=http://myip:port before doing ionic serve but meteor still seems to try to connect to http://localhost:3000

Would it be possible to give a more clear explanation what to to to make Meteor connect to the custom IP?

@dotansimha
Copy link
Collaborator

dotansimha commented Oct 30, 2016

You need to set it as global variable in the JavaScript context, for example:

window.__meteor_runtime_config__= { DDP_DEFAULT_CONNECTION_URL: "..."};

import "meteor-client-side";

It's mentioned in the meteor-client-side pcakage docs (https://github.com/idanwe/meteor-client-side)

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