{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/7849","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/7849/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/7849/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/7849/events","html_url":"https://github.com/meteor/meteor/issues/7849","id":180244668,"number":7849,"title":"Meteor Cordova app still tries to connect to local server after a build with --server option.","user":{"login":"dagatsoin","id":3670794,"avatar_url":"https://avatars.githubusercontent.com/u/3670794?v=3","gravatar_id":"","url":"https://api.github.com/users/dagatsoin","html_url":"https://github.com/dagatsoin","followers_url":"https://api.github.com/users/dagatsoin/followers","following_url":"https://api.github.com/users/dagatsoin/following{/other_user}","gists_url":"https://api.github.com/users/dagatsoin/gists{/gist_id}","starred_url":"https://api.github.com/users/dagatsoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagatsoin/subscriptions","organizations_url":"https://api.github.com/users/dagatsoin/orgs","repos_url":"https://api.github.com/users/dagatsoin/repos","events_url":"https://api.github.com/users/dagatsoin/events{/privacy}","received_events_url":"https://api.github.com/users/dagatsoin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-30T08:08:01Z","updated_at":"2016-09-30T11:58:57Z","closed_at":null,"body":"- METEOR@1.4.1.1\r\n- ROOT_URL (on server) is set to: X.X.X.X:8080\r\n- Run command of the server: `meteor build app/ --directory --server-only --server 0.0.0.0:8080`\r\n\r\n(Xpost with an [SO question](http://stackoverflow.com/questions/39785872/how-to-set-a-server-url-to-connect-to-for-a-meteor-cordova-app), but I suspect an issue)\r\n\r\nI build my meteor cordova app with `meteor build ../output --server myserverprod.com:8080`\r\n\r\nThen I upload the android-armv7-debug.apk to an FTP and redownload it on my devices.\r\n\r\nBut when I remote debugging I see that it still tries to connect to my local server 192.x.x.x instead of the URL I put in the command line.\r\n\r\nI also tested by disable wifi to be sure that it happens with the initial embedded files.\r\n\r\nIs there any environment variable to set which are not documented?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/250726993","html_url":"https://github.com/meteor/meteor/issues/7849#issuecomment-250726993","issue_url":"https://api.github.com/repos/meteor/meteor/issues/7849","id":250726993,"user":{"login":"dagatsoin","id":3670794,"avatar_url":"https://avatars.githubusercontent.com/u/3670794?v=3","gravatar_id":"","url":"https://api.github.com/users/dagatsoin","html_url":"https://github.com/dagatsoin","followers_url":"https://api.github.com/users/dagatsoin/followers","following_url":"https://api.github.com/users/dagatsoin/following{/other_user}","gists_url":"https://api.github.com/users/dagatsoin/gists{/gist_id}","starred_url":"https://api.github.com/users/dagatsoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagatsoin/subscriptions","organizations_url":"https://api.github.com/users/dagatsoin/orgs","repos_url":"https://api.github.com/users/dagatsoin/repos","events_url":"https://api.github.com/users/dagatsoin/events{/privacy}","received_events_url":"https://api.github.com/users/dagatsoin/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T11:58:57Z","updated_at":"2016-09-30T11:58:57Z","body":"Note that the doc is also different form the command line help.\r\nThe command line says we must write --server**=** and the doc says to use a space. So which one is right?\r\n\r\nI will double check the protocol."}}
{"actor":{"display_login":"dagatsoin"}}