在Heroku中部署syncfusion示例



我尝试在Heroku中运行这个https://github.com/syncfusion/blazor-showcase-appointment-planner的web-assembly。

我在Heroku中添加了构建包https://github.com/jincod/dotnetcore-buildpack,并尝试部署它。以下是在Heroku中构建后的日志:


2021-10-20T05:11:46.910345+00:00 heroku[web.1]: Starting process with command `cd /app/heroku_output && ./HealthTracker.Client`
2021-10-20T05:11:47.575776+00:00 app[web.1]: bash: ./HealthTracker.Client: No such file or directory
2021-10-20T05:11:47.685283+00:00 heroku[web.1]: Process exited with status 127
2021-10-20T05:11:47.893064+00:00 heroku[web.1]: State changed from starting to crashed
2021-10-20T05:12:11.000000+00:00 app[api]: Build succeeded
2021-10-20T05:12:49.235940+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=b3604c45-79db-4ff4-8a39-5b2120c831f5 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:12:50.208185+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=testing1020.herokuapp.com request_id=cee0dbd6-a639-4348-a292-401e4f119edd fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:22:08.275777+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=4ecd0252-1e70-437d-ba12-787499e10715 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=https
2021-10-20T05:22:11.799657+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=testing1020.herokuapp.com request_id=7823761f-d163-4392-b76f-7af4fdae256b fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=http
2021-10-20T05:22:12.075022+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=testing1020.herokuapp.com request_id=efeaffb9-954e-4737-9ca0-a138a3568ac5 fwd="219.78.255.70" dyno= connect= service= status=503 bytes= protocol=http

我试图将web-assembly从文件夹树中移除,并将其内容移动到存储库的根目录。然后得到:

2021-10-20T05:11:47.575776+00:00 app[web.1]: bash: ./HealthTracker.Client: No such file or directory

任何人都可以在Heroku中部署应用程序,或者发现部署过程中的任何错误吗?

所以,对于任何有同样问题的人。这不是理想的解决方案,但它有效。我没有设法推动我的Blazor WASM项目既没有到Heroku(与。net buildpack)也没有GH页面。

将您的静态Blazor WASM推送到Cloudflare页面-教程

几乎没有问题发生-推送到github,在cloudflare页面界面粘贴构建命令-部署

最新更新