Vaadin应用程序在Heroku不起作用,NPM安装尚未运行或失败
当我部署 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要构建用于生产的应用程序,即使用
-Pproduct
参数运行mvn
。对于 Heroku,这可以使用 CLI 来完成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