I have multiple Ghost instances on my VPS.
When one Ghost instance is Stopped (but is still installed) and then I install another new Ghost instance in a different directory, the port number of the first instance is re-used.
Then, after I re-start the first instance, both URLs arrive at the same (the Ghost instance/site).
However, if the first Ghost instance is Started while I install the second Ghost instance, the CLI then sees that port as already in-use and chooses a different port.
Is there a way to either:
Make the CLI recognize (so it will not re-use) the ports assigned to the other Stopped (but installed) Ghost instances?
If not, how could I re-assign the port that was re-used in order to prevent or correct the conflict?
@vikaspotluri123 provided partial understanding in this post a couple of years ago…