Closed gingermusketeer closed 1 month ago
its expected, kamal needs to be able to run git commands. you can see here the code that targets the error you are getting
In a subdirectory of a git repo the commands should work?
Understand if this is a limitation that isn’t worth solving for now but perhaps improving the error message is? I found fatal: not a git repository (or any parent up to mount point /)
to be a bit misleading.
We have not designed Kamal to work for subdirectories like this. If you'd like to explore making that work, please do investigate, then open a PR if you tackle it.
I have a git repo with
front-end
andback-end
folders. I started out with kamal in the root of the repo but decided that I only wanted to use it for the back-end so moved the config files etc into there. As soon as I did that I ran into the following error:To reproduce:
.kamal
,.env
andconfig/deploy.yml
into a sub directory.kamal setup
Is this expected?