Question

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

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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

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.