Build from git repo subroot folder

I have a git repo that is connected to Appflow and there are 2 folders at the root. One of them is the actual ionic app and the other is for the backend called /api. How would I create a build in Appflow from the app and not at the root?

–/
----/app <== I want the build to be here
----/api
----/ README.md

The build is obviously failing because it cannot find the actual project. I have the /api deployed to heroku and am starting to think I need 2 repositories? Please help, thank you.

Appflow technically doesn’t support this kind of setup at the moment. You’ll probably want to split the two projects into different repos.

Is that usually the case for ionic apps? Have one repo for the ionic app and another repo for the backend code? @mhartington

Yeah, this is pretty common in most projects, not just ionic apps

That’s disappointing. Since the pipeline runs in a container, it would be great to expose the “working directory” configuration to the end user so that we don’t have to restructure source code specifically for Appflow. As you are probably aware, there are so many other tools that come into the SDLC and if all of them had the right to impose their own paradigms, tools would mostly be mutually exclusive.

As an example, I have a monorepo with code that is shared between frontend and backend. If I split them into different repositories then I have a different problem to solve :frowning_face: