Hello,
Could you tell me, have the App Platform supporting multiply domains/subdomains for different Static Sites? I have a production and dev instance for one project, can I create 2 static sites in one Application and connect two different domains? For production - example.org for dev instance - dev.example.org.
I tried to add a new domain in the settings panel and after checking App Spec I saw that a new domain set like the “ALIAS” domain.
Thank you for your help!
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
For a configuration like this we recommend creating two separate apps. When an app is deployed, we pull, build, and deploy the latest commit for each component. If one-component fails to build or deploy, all components rollback to the last successful deployment. Running production and staging in the same application might be possible, but would certainly blur lines between staging and production.
As a separate matter, routing between components in the same app is currently only based on path. All domains within the app will be routed the same. Service components can examine the Host header to distinct actions based on hostname, but routing based on distinct domains within an app is not currently possible. We are examining this as a feature.
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.