我正在使用科迪奥进行Meteor开发,所以当我预览它时,我的应用程序不是托管在localhost:3000上,而是在random-name.codio.io:3000上,我必须通过访问random-name-3000.codio.io来访问它,所以当random-name.codio.io:3000启动它的iframe来运行客户端测试时,它有错误的地址,就像这样:<iframe src="http://localhost:5000/?mocha=true&lastModified=1427105608181">。
我如何说服random-name-5000.codio.io使用src而不是localhost:5000
发布于 2015-03-23 12:36:05
在运行应用程序时,尝试这样的操作,我认为它没有正确地设置应用程序url根:
ROOT_URL=http://random-name.codio.io:3000 meteor --port=3000https://stackoverflow.com/questions/29208003
复制相似问题