Question

Sorry, we couldn't find an app in your repo. PHP

Posted November 15, 2021 105 views
PHPDigitalOcean App Platform

I was trying to deploy my app following: https://docs.digitalocean.com/products/app-platform/languages-frameworks/php/#creating-php-applications-in-app-platform

I was trying to deply from gitlab and in my root directory there is composer.json file but when I try do deplay my app, DO says that “we couldn’t find an app in your repo”

Is there something more that I need to do in order to create my app?
I have even tryed to add index.php in root directory with require on vendor/autoload.php but for no use.

2 comments
  • After a bit of debugging I have found that when I try to deploy app from branch where there are only few files (index.php, composer.json, composer.lock, .gitignore, .do/app.yaml, .do/deploy.template.yaml) deploy starts without issues but when I add rest of my app files then again “we couldn’t find an app in your repo”

  • Even adding Dockerfile doesn’t change a thing so I have no idea what is going on.

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.

×
Submit an Answer
1 answer

Hey @ciekals11,

You need to have one of index.php and composer.json in the root of the repo for a PHP app to be detected. If your code is in a subdirectory you will need to configure the Source Dir option to point to the subdirectory.

Please open a support ticket and include the link to your repo and we can take a closer look into why the process is failing. You can also share a specific commit if you wish.