Change port 8080 for jhipster app
Solution 1:
2 alternatives:
- Edit
.yo-rc.json
file, change or add serverPort property like"serverPort": "8100",
then re-generate your app withjhipster --with-entities
if you did not make many changes or usejhipster upgrade --force
if you did. - Change port value in
application*.yml
files andproxy.conf.json
,and probably also in some docker files
Solution 2:
Im using visual code, with minimal added code from jhipster generated code. Using jhipster monolithic app (although I have done it with micorservices as well).
I just do command + shift + F
to search for all instance of 8080
. This helps you search all your files for this instance.
Then chose all the ones with yml files yo-rc.json, serverPorts, procy.conf.json, docker files, webpackdev etc... that pertains to port 8080 and change them to 8181 or other port number.
Hope this helps as well.