App Platform - build for all branches except master

Posted June 14, 2021 463 views
DeploymentDigitalOcean App Platform

I’ve already set up a live site to try out App Platform for my personal website. I wanted to know if there’s a way to set it up so that I can have a live preview when creating a pull request vs “production”.

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

Hi @silverAndroid,

Live preview feature is not available on App Platform yet but it is on our roadmap and should be available in the near future. However, we do not have any public timeline as of now.

Please note that we have auto rollback feature for all our apps. In case the latest build fails, the app is rolled back to the previous successful deployment and your app wouldn’t face any downtime.

There’s a workaround to achieve the live preview but please keep in mind that this would cost you additional dollars. You could create another app with a different branch linked to it, let’s say ‘dev’. This wouldn’t be exposed to your main/production domain and would allow you to preview before it gets deployed to production.

Taha Fatima

  • I’m eagerly awaiting this feature in DOAP, after getting used to it on Vercel & Netlify. In the meantime, if anybody finds a Github action that can create temporary deployments for pull request branches, please let us all know!