-
My apologies for opening a separate discussion about this but for the life of me I cannot find a solution and I am pressed for time at this point, I've spent most of my day trying to deploy my app properly. I don't know how to correctly copy over or mount my pb_public directory-- the docs seem to imply that this is automatic but it isn't working-- my CSS files return a 404 response in JSON. The following is my project structure:
The following is how I set the static dir handler in main.go:
And here is my Dockerfile:
I tried sopying over the ./pb_public directory on the penultimate line but that did nothing. I would really appreciate a little help here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OMFG I was so close the entire time. Just copy it over to /pb/pb_public/... And then set:
|
Beta Was this translation helpful? Give feedback.
OMFG I was so close the entire time. Just copy it over to /pb/pb_public/... And then set:
e.Router.GET("/*", apis.StaticDirectoryHandler(os.DirFS("/pb/pb_public"), false))