-
Notifications
You must be signed in to change notification settings - Fork 3
COG update
andrea rota edited this page Apr 19, 2023
·
5 revisions
Welcome to the foodscapes wiki!
- Update the COG locally following what it says in https://github.com/Vizzuality/foodscapes/blob/develop/science/README.md
- 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 theid=1xxx-xxxxxxxxxxxxx-xxxxxxxxxx
- SSH into foodscapes-dev server
sudo su - ubuntu
-
tmux attach
if peering with someone else - 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 - Stop the service with
sudo systemctl stop foodscapes.service
- Rebuild the image with
docker compose up --build
, check that it spins correctly and stop it. sudo systemctl start foodscapes.service