Monorepo deployment
Hi
I'm having trouble deploying a go application from a monorepo.
Repo:
The go application is in ./www:
And here's my zerops.yml
And here's the output:
I've tried changing the go build command to
Any ideas?
Thanks
3 Replies
Hi @TonyT I'd say the current directory for the build needs to be adjusted, and then
deployFiles needs to be set up correctly. I think it could be something like this:
Try it, and if it doesn't work, we can still enable debug mode and look directly into the build container to see what's happening there.
BTW, it might be worth embedding those assets directly into the Go binary using //go:embed and then returning them directly from there.
https://docs.zerops.io/zerops-yaml/specification#using-wildcardsHi Jan
Looks good - deploy started successfully (although failed due to a different error, something for me to fix in an imported library).
Thanks for your quick response.
Tony
If anything else doesn't work, don't hesitate to contact us.