Weird, Now no matter the folder Ionic Serve serves Same app


#1

Not sure what is going on, I got a paid ionic pro account going today, and setup gitlab.com and linked main project.

So, someone asked a question on here, and i went to old learning project and setup his code and when i ran

Ionic serve

it ran the main project in browser, I went to all my old project folder and no matter what folder im in it serves the main

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : browser 5.0.1 ios 4.5.3
    Ionic Framework    : ionic-angular 3.6.1

System:

    ios-deploy : 1.9.2 
    Node       : v8.6.0
    npm        : 2.15.12 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.1 Build version 9B55 



#2

I have seen this happen before myself. I deleted Chrome and reinstalled it. That resolved it.


#3

ok, I think i found out how to stop it.

first I don’t use chome i use Firefox with --lab

i also use webStorm as my dev environment

I found if i check - Single instance only, then I can move between projects in Webstorm and run them in lab

Single instance only	

If this check box is selected, this run/debug configuration cannot be launched more than once.
Every time a new run/debug configuration is launched, WebStorm checks the presence of the other instances of the same run/debug configuration, and displays a confirmation dialog box. If you click OK in the confirmation dialog box, the first instance of the runner will be stopped, and the next one will take its place.

This makes sense when the usage of certain resources can cause conflicts, or when launching two run/debug configurations of the same type consumes too much of the CPU and memory resources.

If this check box is not selected, it is possible to launch as many instances of the runner as required. So doing, each runner will start in its own tab of the Run tool window.