在线生成JHipster应用程序时会显示空白页 [英] Generating JHipster app online serves empty page

查看:69
本文介绍了在线生成JHipster应用程序时会显示空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从本地安装的JHipster 4.7生成应用程序时,可以通过运行./mvnw毫无问题地在localhost:8080上启动它.

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

但是,当我通过 https://start.jhipster.tech 在线生成项目时,正在运行./mvnw在localhost:8080上显示空白页(在浏览器的控制台上没有错误).要查看该页面,我必须运行yarn start并使用localhost:9000(如果我是在本地生成项目的,则是可选的).

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).

有人经历过吗?

推荐答案

  • dev模式下可以, JHipster开发文档在JHipster Online上仍然有效.可能并不明显.因此,确实需要在后端运行./mvnw,在前端运行yarn start
  • prod模式下,运行./mvnw -Pprod将自动运行yarn,因此您可能看不到它(因为它是自动的),但最后基本上是同一件事.
    • 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.
    • 将来可能会发生变化,使事情变得更容易:构建可以在云中(或在本地Docker容器中)完成,因此您根本看不到它们.

      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.

      这篇关于在线生成JHipster应用程序时会显示空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆