问题
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&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