Generating JHipster app online serves empty page

冷暖自知 提交于 2019-12-11 02:48:50

问题


When I'm generating app from locally installed JHipster 4.7, I can start it on localhost:8080 by running ./mvnw with no problems.

But when I generate the project online at https://start.jhipster.tech, running ./mvnw shows the blank page on localhost:8080 (no errors on the browser's console). To see the page, I have to run yarn start and use localhost:9000 (this is optional if I generate the project locally).

Did anyone experience this?


回答1:


  • Yes in dev mode the JHipster development documentation is still valid with JHipster Online, which might not be obvious. So indeed you'll need to run ./mvnw for the backend and yarn start for the front-end
  • In prod mode, running ./mvnw -Pprod will run automatically yarn so you might not see it (as it's automatic), but in the end it's basically the same thing.

In the future that might change, to make things easier: the build could be done in the cloud (or in a local Docker container), so you won't see those at all.



来源:https://stackoverflow.com/questions/45941832/generating-jhipster-app-online-serves-empty-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!