Question

Questions regarding PHP 'App'

Posted October 14, 2021 121 views
PHPDigitalOcean App Platform

I am experimenting with setting up a PHP service on the app platform.

I have connected it to a gitlab repository and it builds and deploys well, but I have run into several issues:

  • The (DO managed) (sub-)domain does not work. I get the following error: This site can’t provide a secure connection. While SSL works fine with the supplied ondigitalocean.app subdomain
  • I would like to setup url rewriting, but I can’t find any documentation on how to do so
  • Also I would like to manage the app spec from within the repository. I have found a sample somewhere where the file is stored in .do/app.yaml, but that doesn’t seem to work

Documentation is quite scarce unfortunately, I hope someone can answer my questions. Thanks!

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 there!

For your subdomain I’d recommend reaching out to our support team to check what may be blocking the SSL from being issued.

Unfortunately URL rewriting is not supported in App Platform at this time. I’d suggest you add this ideas to our ideas page: Ideas

App specs stored in a repo are currently used for the deploy to DO button button: How to Add a “Deploy to DigitalOcean” Button to Your Repository

Using an app spec stored in your repo can’t be used to deploy an app outside of the deploy to DO button. You can us DOCTL to build an app from the spec however: doctl apps

Hope it helps!
Nate

  • Hi Nate,

    Thanks for your quick answer!

    Honest question: what are the use cases for the App Platform at the moment? Since there is no rewriting, you can’t deploy an api or something like that. It just seems really, really limited without that functionality.

    Also not being able to have ‘infrastructure as code’ is quite a let down. I will look at that 'Ideas’ page.