我想加快我在Codeanywhere上的开发/测试过程。
Codeanywhere的开发框为您的主机“应用程序”(即: index.html)提供了一些随机URL,如下所示:
http://preview.[really-long-hash].box.codeanywhere.com/build/
不知道如何从那里到webpack的开发服务器,如果它正在运行。有没有我缺少的基本配置?
在Webpack的所有教程中,如果您在本地运行,您将访问运行中的dev服务器,如:http://localhost:8080,但http://preview.[really-long-hash].box.codeanywhere.com:8080只显示来自Codeanywhere的错误消息。
发布于 2016-01-19 15:08:34
codeanywhere上的所有web服务器都应该被设置为响应0.0.0.0:Port (在您的示例中为0.0.0.0:8080)。您可能需要配置您的need应用程序,这样它就不会指向本地主机。
启动webapp后,您可以在http://preview.[really-long-hash].box.codeanywhere.com:8080上查看您的网页。
https://stackoverflow.com/questions/34869759
复制相似问题