14 Replies
GitHub
testdeploy/testbackend at main · jasserhouimli/testdeploy
Contribute to jasserhouimli/testdeploy development by creating an account on GitHub.
Hi @Swag , your application is accessible on the domain, but it returns HTTP status 404. The problem is most likely in your application's code.
it works fine on the localhost , i reported the same issue few days ago and it has been solved by removing the http redirections and worked fine
i got the same issue now and idk how to resolve it
try to enable logging
and examine the container logs, which should show where the problem might be.
Try to call
curl -v http://localhost:5000 if your application response is correct.looks like there is not matching endpoint to replay
its fixed
but how i can static files
025-10-05T14:28:37.635Zdbug: Microsoft.AspNetCore.SignalR.Internal.DefaultHubProtocolResolver[1]
2025-10-05T14:28:37.635Z Registered SignalR Protocol: json, implemented by Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol.
2025-10-05T14:28:37.678Z warn: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[16]
2025-10-05T14:28:37.678Z The WebRootPath was not found: /var/www/wwwroot. Static files may be unavailable.
2025-10-05T14:28:37.684Z dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
2025-10-05T14:28:37.684Z Hosting starting
2025-10-05T14:28:37.700Z warn: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[16]
2025-10-05T14:28:37.700Z The WebRootPath was not found: /var/www/wwwroot. Static files may be unavailable.
you need to have your files in
/var/www/wwwroot, which you probably don't, have you deployed them (build.deployFiles in zerops.yml)?what is the syntax ?
this is my wwwroot https://github.com/jasserhouimli/testdeploy/tree/main/testbackend/wwwroot
and this is my zerops.yml https://github.com/jasserhouimli/testdeploy/blob/main/zerops.yml
The only artifact you are passing from the build container to the runtime container is contents of the
app/ folder - https://github.com/jasserhouimli/testdeploy/blob/main/zerops.yml#L19
so if you want to pass wwwroot as well, it needs to be defined here
so unless your build automatically adds it to the app folder, you have to add the path to it manually.. you can use the built in file browser (right under runtime log) to see what actually ended up in the runtime containerexample to add the wwwroot defined in the github repo inside the testbackend folder
i add wwwroot ?
https://docs.zerops.io/zerops-yaml/specification#deployfiles-
you add path to the folder relative to your zerops.yml
can use
~ to mark from which point it should deploy
The resulting
zerops.yml part would probably look like this, but look at the documentation Ales linked above.