how to use app platform for a basic html web app

I am trying to use App Platform to publish my basic web app. The web app is simply made of an html landing page, and a bunch of php files to access my MySQL database. I am migrating this all from Siteground, so theoretically the database credentials won’t work. I currently have a 5GB volume, 25GB Disk Ubuntu droplet, and a managed database.

This should all work with the App Platform. Here’s the problem, though: When I have it all set up, with the directory pointed at the folder /animalia inside my Github where my app main page and all relevant files are, it says “no component detected.” When i point it specifically to the /animalia/main.html file inside this folder, it says “detecting app.”

In any case though, it won’t let me go forward past the first page of selecting my Github repo. Therefore, I am wondering what is wrong, since the errors don’t make any sense. I am attaching my Github for your reference.

Please let me know as soon as you can how I can get my HTML-based application up and running DigitalOcean, even if I don’t have to use App platform. Thank you!

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.

Bobby Iliev
Site Moderator
Site Moderator badge
November 2, 2023

Hi there,

The DigitalOcean App Platform determines the type of app by checking certain files in the root directory of your repository. For PHP, it typically looks for files like composer.json or index.php.

You need to make sure you have the required files in the /animalia directory, and not just main.html. Otherwise, the App Platform will not be able to detect that this is a PHP app.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel