I have a simple golang server deployed with Render. Im using goose (GitHub - pressly/goose: A database migration tool. Supports SQL migrations and Go functions.) for db migrations. Goose is working normally in development on my machine. When I deploy using the predeploy hook: GOOSE_DRIVER=postgres GOOSE_DBSTRING=“user=dbname=sslmode=” goose -dir ./db/migrations up (removed values for post) I get this error and the deploy fails:
bash: goose: command not found
Anyone have experience with this? WOuld like to get it solved so I can deploy my most recent changes.
Thanks for the response. I am installing goose as part of the build step, but unfortunately still getting that error. Might try a different db migration tool : /
It’s hard to suggest anything without the accompanying deploy logs around those commands.
If you don’t want to share these details on the community forum, please feel free to raise a ticket from the “Help” or “Contact Support” links while logged into the Dashboard.
Those logs don’t show the Build Command that is being run prior to that.
Maybe raise a ticket from the “Help” or “Contact Support” links while logged into the Dashboard, so that we can take a look at your setup from our side.