project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Production deployment #524

Closed fungjj92 closed 5 years ago

fungjj92 commented 5 years ago

This production deployment will have a small, additional hoop to jump through.

We updated and added some new states' raster data in s3 #523 . Ordinarily adding states wouldn't require a redeploy, but in this case a raster filename ('pesticide' --> 'insecticide') changed that that necessitated a code change, too.

Upload the new VRTs and TIFs before the updated code is deployed. This is because there's a new migration that flushes the scores column of the Apiary table to ensure fresh, complete data is shown to users. We'll get no data for the insecticide field for a few minutes if anyone is pulling fresh data during deploy, but that is much preferred to the current scenario where stale cached data breaks the front end.

hectcastro commented 5 years ago

Would it be possible to write out the commands necessary (whatever was used to make this happen in staging) to execute the items in the checklist? Hoping that'll help build confidence in the steps themselves, but also reduce the cognitive burden for the production release process.

rajadain commented 5 years ago

(depends on #525)

fungjj92 commented 5 years ago

This is now unblocked, and the deploy instructions have been updated. Happy to pair/copy the s3 data to prod, explain further, etc.