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 github.com/yav-fi/animalia/ 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!
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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
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
orindex.php
.You need to make sure you have the required files in the
/animalia
directory, and not justmain.html
. Otherwise, the App Platform will not be able to detect that this is a PHP app.Let me know how it goes!
Best,
Bobby