Question

Build static sites outside DOAP pipeline and host them inside DOAP

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,


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

👋🏼 @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?

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.