PhpStorm - Two Dart web apps in one project

旧城冷巷雨未停 提交于 2019-12-11 18:24:10

问题


I have a Dart project in PhpStorm and I have two web (Angular Dart) modules (or subprojects?)

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.

Directory structure is ~/Zdrojaky/src/dart/app/Vavrinec (the main project) with two subdirs Admin and Owner. Run/Debug conf is same for both.

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.

.


回答1:


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.



来源:https://stackoverflow.com/questions/55844130/phpstorm-two-dart-web-apps-in-one-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!