如何从根URL(localhost:port /)而不是(localhost:port / path / index.html)运行应用程序

时间:2015-02-16 09:36:12

标签: intellij-idea dart webstorm

当我从Webstorm运行/调试应用程序时,这是一个问题。

运行/调试配置对话框没有给我们太多帮助,我们可以在那里指定index.html文件的路径。

我希望能够设置类似于yeoman's angular generator开箱即用的配置。

1 个答案:

答案 0 :(得分:2)

WebStorm内置Web服务器从'http://localhost:<built-in server port>/<project root>'为项目提供服务。如果要更改内置Web服务器上的默认Web路径,则必须通过相应地编辑系统主机文件来重新配置服务器 - 请参阅http://youtrack.jetbrains.com/issue/WEB-8988#comment=27-577559。但是,正如this comment中提到的那样,目前在服务器上以这种方式配置dart应用程序存在一些问题。 请关注WEB-14047了解更新