How do you change the iframe address used by Meteor Velocity

£可爱£侵袭症+ 提交于 2019-12-14 03:59:16

问题


I am using Codio for my Meteor development, so my app is not hosted at localhost:3000 when I'm previewing it, it's actually at random-name.codio.io:3000, which I have to get to by visiting random-name-3000.codio.io, so when Velocity fires up its iframe to run client-side tests on it has the wrong address, like so: <iframe src="http://localhost:5000/?mocha=true&amp;lastModified=1427105608181">.

How do I convince Velocity to use random-name-5000.codio.io as its src instead of localhost:5000?


回答1:


Try something like this when running the app, i think it's not correctly setting the app url root:

ROOT_URL=http://random-name.codio.io:3000 meteor --port=3000


来源:https://stackoverflow.com/questions/29208003/how-do-you-change-the-iframe-address-used-by-meteor-velocity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!