Skip to content

COG update

andrea rota edited this page Apr 19, 2023 · 5 revisions

Welcome to the foodscapes wiki!

Update the COG!

  1. Update the COG locally following what it says in https://github.com/Vizzuality/foodscapes/blob/develop/science/README.md
  2. Upload the new created cog to project drive. Once there, get the download url in the network tab of devtools. It looks something like https://drive.google.com/uc?id=1xxx-xxxxxxxxxxxxx-xxxxxxxxxx&authuser=0&export=download. get the id=1xxx-xxxxxxxxxxxxx-xxxxxxxxxx
  3. SSH into foodscapes-dev server
  4. sudo su - ubuntu
  5. tmux attach if peering with someone else
  6. go to /opt/foodscapes and update the .env with the new id in the cog download url and the new sha256 of the new file
  7. Stop the service with sudo systemctl stop foodscapes.service
  8. Rebuild the image with docker compose up --build, check that it spins correctly and stop it.
  9. sudo systemctl start foodscapes.service
Clone this wiki locally