Running a Blazor Server app with Amplify via Github

0

I tried to get my Blazor Server app running by following this tutorial: https://aws.amazon.com/de/blogs/devops/deploy-net-blazor-webassembly-application-to-aws-amplify/ However, it is for Blazor wasm and it does not seem to work for Blazor Server. I do not know why but I just get an 404 after publishing. I have also tried to use 'baseDirectory: /release' instead of 'baseDirectory: /release/wwwroot' but it did not work. Nothing useful appears on the logs, I think. It ends with:

2023-05-03T15:36:23.705Z [INFO]: Similino -> /codebuild/output/src852460419/src/similino/bin/Release/net6.0/Similino.dll
2023-05-03T15:36:23.864Z [INFO]: Similino -> /codebuild/output/src852460419/src/similino/release/
2023-05-03T15:36:23.886Z [INFO]: # Completed phase: build
2023-05-03T15:36:23.889Z [INFO]: ## Build completed successfully
2023-05-03T15:36:23.889Z [INFO]: # Starting caching...
2023-05-03T15:36:23.890Z [INFO]: Nothing to cache
2023-05-03T15:36:23.890Z [INFO]: # Caching completed
2023-05-03T15:36:23.895Z [INFO]: # No custom headers found.
2023-05-03T15:36:23.910Z [WARNING]: !! No index.html detected in deploy folder: /codebuild/output/src852460419/src/similino/release
2023-05-03T15:36:23.910Z [INFO]: # Starting build artifact upload process...
2023-05-03T15:36:24.711Z [INFO]: # Uploading build artifact '__artifactsHash.zip'...
2023-05-03T15:36:24.752Z [INFO]: # Uploading build artifact '__artifacts.zip'...
2023-05-03T15:36:24.968Z [INFO]: # Build artifact upload completed
2023-05-03T15:36:24.968Z [INFO]: # Starting environment caching...
2023-05-03T15:36:24.968Z [INFO]: # Uploading environment cache artifact...
2023-05-03T15:36:25.024Z [INFO]: # Uploaded environment cache artifact
2023-05-03T15:36:25.024Z [INFO]: # Environment caching completed
Terminating logging...
User
posta un anno fa108 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande