You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hertzbeat.apache.org by "kim2yung (via GitHub)" <gi...@apache.org> on 2025/02/25 07:02:17 UTC

[D] Can I change the local fronEnd port 4200 to other port? [hertzbeat]

GitHub user kim2yung created a discussion: Can I change the local fronEnd port 4200 to other port?

Can I change the local fronEnd port 4200 to other port? How

GitHub link: https://github.com/apache/hertzbeat/discussions/3104

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] Can I change the local fronEnd port 4200 to other port? [hertzbeat]

Posted by "kim2yung (via GitHub)" <gi...@apache.org>.
GitHub user kim2yung added a comment to the discussion: Can I change the local fronEnd port 4200 to other port?

Yes, I have replaced it by "start": "ng serve --port xxxx --proxy-config proxy.conf.json"
But, when I do "ng serve --open" in web-app directory it still open localhost:4200,, and when I do "yarn start" in web-app directory then it gives error ''missing bootstarp".

GitHub link: https://github.com/apache/hertzbeat/discussions/3104#discussioncomment-12323007

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] Can I change the local fronEnd port 4200 to other port? [hertzbeat]

Posted by "JuJinPark (via GitHub)" <gi...@apache.org>.
GitHub user JuJinPark added a comment to the discussion: Can I change the local fronEnd port 4200 to other port?

You can do this by modifying the /web-app/package.json file
change
```
"start": "ng serve --proxy-config proxy.conf.json"
```
To:
```
"start": "ng serve --port {yourPortNumber} --proxy-config proxy.conf.json"
```
Then, simply run : yarn start

GitHub link: https://github.com/apache/hertzbeat/discussions/3104#discussioncomment-12319436

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] Can I change the local fronEnd port 4200 to other port? [hertzbeat]

Posted by "JuJinPark (via GitHub)" <gi...@apache.org>.
GitHub user JuJinPark added a comment to the discussion: Can I change the local fronEnd port 4200 to other port?

Have you tried running yarn install first before yarn start?
This is suggested in the official documentation for running the frontend.

https://hertzbeat.apache.org/docs/community/contribution/
<blockquote>
Frontend start

Need Node Yarn Environment, Make sure Node.js >= 18

Cd to the web-app directory: cd web-app

Install yarn if not existed npm install -g yarn

Install Dependencies: yarn install or yarn install --registry=https://registry.npmmirror.com in web-app

After the local backend is started, start the local frontend in the web-app directory: yarn start

Browser access to localhost:4200 to start, default account/password is admin/hertzbeat
</blockquote>



GitHub link: https://github.com/apache/hertzbeat/discussions/3104#discussioncomment-12334340

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org