问题
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
devmode the JHipster development documentation is still valid with JHipster Online, which might not be obvious. So indeed you'll need to run./mvnwfor the backend andyarn startfor the front-end - In
prodmode, running./mvnw -Pprodwill run automaticallyyarnso 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