planetary-social / ansible-scripts

Ansible automation scripts used at Planetary
MIT License
2 stars 3 forks source link

Automate deployment of updating rooms #10

Closed chereseeriepa closed 1 year ago

chereseeriepa commented 1 year ago

When updating the rooms frontend on a digital ocean droplet, each server will have unique requirements including:

chereseeriepa commented 1 year ago

Dependant on: https://github.com/planetary-social/rooms-frontend/issues/56

chereseeriepa commented 1 year ago

Zach is working on this

cooldracula commented 1 year ago

This issue is addressed in planetary-social/ansible-scripts, PR#12 and in planetary-social/rooms-frontend, PR#103.

I created a docker image with the production built dist/ folder being served from a simple nginx server. With #12, we set up a host that runs on one domain, and so that means the rooms frontend can run separately, with its env pointing to /graphql instead of someurl/graphql.

To update the frontend, you would just build the latest version, then build a new docker image and tag, and then run an ansible script with the new docker tag. This is a part of the new ansible scripts (with some minor tweaking).