{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/4136","labels_url":"https://api.github.com/repos/meteor/meteor/issues/4136/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/4136/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/4136/events","html_url":"https://github.com/meteor/meteor/issues/4136","id":66568449,"number":4136,"title":"Meteor.absoluteUrl.defaultOptions.rootUrl does not work","user":{"login":"linhkurt","id":7656225,"avatar_url":"https://avatars.githubusercontent.com/u/7656225?v=3","gravatar_id":"","url":"https://api.github.com/users/linhkurt","html_url":"https://github.com/linhkurt","followers_url":"https://api.github.com/users/linhkurt/followers","following_url":"https://api.github.com/users/linhkurt/following{/other_user}","gists_url":"https://api.github.com/users/linhkurt/gists{/gist_id}","starred_url":"https://api.github.com/users/linhkurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linhkurt/subscriptions","organizations_url":"https://api.github.com/users/linhkurt/orgs","repos_url":"https://api.github.com/users/linhkurt/repos","events_url":"https://api.github.com/users/linhkurt/events{/privacy}","received_events_url":"https://api.github.com/users/linhkurt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Mobile","name":"Project:Mobile","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-06T09:30:30Z","updated_at":"2015-04-15T08:55:35Z","closed_at":"2015-04-14T22:39:32Z","body":"I have the following code on client:\r\n<pre><code>\r\nMeteor.startup(function () {\r\n\tconsole.log('client startup');\t\r\n\tMeteor.absoluteUrl.defaultOptions.rootUrl = \"http://localhost:3000/app1\";\t\r\n\tconsole.log(Meteor.absoluteUrl()); //this line prints out http://localhost:3000/app1\r\n});\r\n</code></pre>\r\n\r\nAnd then i run:\r\n<pre><code>\r\nmeteor run ios\r\n</code></pre>\r\nHowever, on simulator, my app is still spinning, because it still points to localhost:3000 i think, while i only have router for '/app1'.\r\n\r\nI also tried <code>ROOT_URL=http://localhost:3000/app1 meteor run ios</code>, but it also does not work.\r\n\r\nMy intention is to bundle different app with different rootURL (/app2, /app3, ..) but use the same server code base. How could I do that?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/93269489","html_url":"https://github.com/meteor/meteor/issues/4136#issuecomment-93269489","issue_url":"https://api.github.com/repos/meteor/meteor/issues/4136","id":93269489,"user":{"login":"linhkurt","id":7656225,"avatar_url":"https://avatars.githubusercontent.com/u/7656225?v=3","gravatar_id":"","url":"https://api.github.com/users/linhkurt","html_url":"https://github.com/linhkurt","followers_url":"https://api.github.com/users/linhkurt/followers","following_url":"https://api.github.com/users/linhkurt/following{/other_user}","gists_url":"https://api.github.com/users/linhkurt/gists{/gist_id}","starred_url":"https://api.github.com/users/linhkurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linhkurt/subscriptions","organizations_url":"https://api.github.com/users/linhkurt/orgs","repos_url":"https://api.github.com/users/linhkurt/repos","events_url":"https://api.github.com/users/linhkurt/events{/privacy}","received_events_url":"https://api.github.com/users/linhkurt/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T08:55:35Z","updated_at":"2015-04-15T08:55:35Z","body":"Sorry if I make you angry, already posted on Stackoverflow, I get stuck so I seek for help everywhere."}}