Vaadin应用程序在Heroku不起作用,NPM安装尚未运行或失败

发布于 2025-01-21 01:02:00 字数 354 浏览 2 评论 0原文

当我部署 vaadin 应用程序时,我构建成功,但在日志中收到此错误:“无法启动开发服务器,因为 '/app/node_modules/webpack-dev-server/bin/webpack-dev-server.js'不存在。npm install 未运行或失败。”并且应用程序无法运行。我已经添加了 jetty runner 插件,procfile 也应该没问题。有人知道发生了什么事吗?该项目的 github 链接为 https://github.com/yaguetskr/launchpool

When i deploy my vaadin application i get build success, but i get this error in the log: "Couldn't start dev server because '/app/node_modules/webpack-dev-server/bin/webpack-dev-server.js' doesn't exist. npm install has not run or failed." and app isnt working. I have already added the jetty runner plugin and the procfile should be allright too. Anyone knows what is happening? The github link to the project is https://github.com/yaguetskr/launchpool

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏闹i 2025-01-28 01:02:00

您需要构建用于生产的应用程序,即使用 -Pproduct 参数运行 mvn。对于 Heroku,这可以使用 CLI 来完成

heroku config:set MAVEN_CUSTOM_OPTS="-Pproduction"

You need to build the application for production, i.e. run mvn with the -Pproduction parameter. For Heroku this can be done using the CLI as

heroku config:set MAVEN_CUSTOM_OPTS="-Pproduction"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文