Can you use a directory within a repository to deploy to app platfrom?

We have existing projects, I am seriously considering app platform instead of deploying directly on droplets to simply things. However, the root of the repository contains things like Dockerfiles and docker-compose.yml files to create consistent local dev environments. The actual deployable source, is in a sub directory called ‘src’. Is there a way to tell app platform to deploy this directory specifically, ignoring all else?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, this should be possible if you manually use an app spec file and set the source_dir property. You can see some examples in the monorepo sample app:

- name: api
    repo: digitalocean/sample-monorepo
    branch: main
    deploy_on_push: true
  source_dir: api
  - path: /api

Here is some more documentation on using doctl and app spec reference. Hope this helps.