Report this

What is the reason for this report?

Build static sites outside DOAP pipeline and host them inside DOAP

Posted on April 15, 2021
Sylvain Corsini

By Sylvain Corsini

Lead Dev at Adfinitas

Hello,

I would like to know if we can build a Angular app outside DOAP but let DOAP manage and host it. Do you have clues on how to manage that ? Can we build the app, push it on, let’s say, Digital Ocean Spaces and let DOAP manage the app ?

Thanks,



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.

👋🏼 @scorsi

You can achieve that by doing the following:

  1. Create a dedicated git repo for the built website e.g. angular-prod. This repo will only contain the live production build of your site—i.e. with the index.html file at the root of the repo.
  2. To deploy a new version of your app, build it externally and commit the generated static files to the angular-prod repo.
  3. Create your app as a static site using the angular-prod repo and enable Auto Deploy on Push.

Does that fit your needs?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.