cli icon indicating copy to clipboard operation
cli copied to clipboard

Explicitly define port for the Vue web app

Open smsunarto opened this issue 3 years ago • 1 comments

Describe the bug

  1. npm run serve in the Vue folder
  2. The port used is non-deterministic and often collides with another application that is already running on that port

This is problematic because documentations/tutorial become unreliable. We should explicitly define a port to use in vite.config.ts

To reproduce Steps to reproduce the behavior:

Self explanatory

What version are you using?

Provide the output of the ignite version command.

Ignite CLI version:	v0.23.0
Ignite CLI build date:	2022-07-24T18:17:44Z
Ignite CLI source hash:	64df9aef958b3e8bc04b40d9feeb03426075ea89
Your OS:		darwin
Your arch:		amd64
Your go version:	go version go1.18 darwin/amd64
Your uname -a:		Darwin scotts-mbp.lan 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 x86_64
Your cwd:		/Users/smsunarto/git/argus/checkers/vue
Is on Gitpod:		false

smsunarto avatar Jul 25 '22 22:07 smsunarto

Related: https://github.com/ignite/cli/issues/2503

smsunarto avatar Jul 25 '22 22:07 smsunarto

New vite-based templates deterministically launch dev server on port 5173 by default.

let me know if a different port is preferred

clockworkgr avatar Nov 03 '22 09:11 clockworkgr