问题描述
我在PhpStorm中有一个Dart项目,并且有两个Web(Angular Dart)模块(或子项目?)
I have a Dart project in PhpStorm and I have two web (Angular Dart) modules (or subprojects?)
由于PhpStorm创建了非常相同的JavaScript Debug配置,因此我在运行/调试它们时遇到问题.当我只有一个时,它运行良好.
I have a problem how to run/debug them as PhpStorm created very same JavaScript Debug configurations. When I had only one it worked well.
目录结构为~/Zdrojaky/src/dart/app/Vavrinec
(主项目),带有两个子目录Admin
和Owner
.两者的Run/Debug conf相同.
Directory structure is~/Zdrojaky/src/dart/app/Vavrinec
(the main project) with two subdirs Admin
and Owner
. Run/Debug conf is same for both.
是否可以在一个PhpStorm项目中运行/调试两个Web Angular Dart(或JS)应用程序?我希望URL中使用不同的端口或目录.
Is it possible to Run/Debug two web Angular Dart (or JS) apps in one PhpStorm project? I would expect different port or directory in URL.
.
推荐答案
我发现Vadim Tsushko提出了几乎相同的SO问题如何服务Angular Dart项目中有几个不同的目录?,他的解决方案指导了我. (唯一的?)解决方案是将所有Angular Dart模块都放在一个PhpStorm项目中.因此,我创建了一个Client
项目,并将Admin
和Owner
作为普通子目录移到了该项目. Admin
和Owner
中没有.idea
目录.目录结构为~/Zdrojaky/src/dart/app/Vavrinec
(主项目),带Client
子目录(子项目),具有两个子目录Admin
和Owner
.然后,通过目录名称区分运行/调试"配置,并按预期工作.
I found almost the same SO question by Vadim Tsushko How to serve several different directories in Angular Dart project? and his solution guided me. The (only?) solution is to have all Angular Dart modules in only one PhpStorm project. So I created a Client
project and moved Admin
and Owner
as normal subdirectories to this. No .idea
directories in Admin
and Owner
. The directory structure is ~/Zdrojaky/src/dart/app/Vavrinec
(the main project) with Client
subdir (subproject) with two subdirs Admin
and Owner
. The Run/Debug configs are then distinguished by the directories names and works as expected.
这篇关于PhpStorm-在一个项目中有两个Dart Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!