By raddevus
Connected Tutorial(This question is a follow-up to this tutorial):
How To Deploy a Static Website to the Cloud with DigitalOcean App PlatformI have followed the tutorial in an attempt to build my App from static content.
My static content includes :
index.htm
/js/*.js files
/cs/main.css
When the app wizard gets to the point where it is “fishing” for my content against my github repo then it fails stating…
App detection failed We’re sorry, but we weren’t able to detect anything that the App Platform can currently run in the repository you selected. Please try a different repository.
Rename index.htm to index.html I decided to rename my index.htm to index.html and try it again. Guess what? That fixed it.
Please fix this bug.
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!
Accepted Answer
Unfortunately the UI does not support altering the index_document at this time. You can create an application via the doctl that will accomplish what you want.
We allow you to specify a custom index_document at the component level. For your example, an app-spec similar to the following would work.
name: sample-html
static_sites:
- environment_slug: html
github:
branch: main
repo: ...
name: site
index_document: index.htm
You could then create it via:
doctl app create --spec <path-to-spec>
I’ll create an internal ticket as well to track better supporting this feature in the UI as well.
Thank you for the feedback!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.