This will trigger the GCP Cloud Build and update the Cloud Run service with the new build
Deploy Revision to GCP manually (requires setting revision active in GCP)
Merge latest code into main for deployment
Use gcloud builds submit --tag gcr.io/ageofinfo-gcp/age-of-info for updating image (adds a new revision) to the react-with-cloudrun service
To divert traffic to this revision, select the react-with-cloudrun service -> Edit/Deploy New Revision and select the build tagged (latest) from the list
Data Updating Process
Update main AOE2:DE Data Spreadsheet
Download it as .csv
Drag .csv files straight into /src/data/rawData
CD into root of project and use npm run gen to generate new JSON
Done!
Node Version Notes
Uses node v18.7.0
.nvmrc exists but nvm use does not work as a command on Windows when using "NVM for Windows"
Run the app locally
Use npm start
Scripts
Use npm run testdev to run tests and watch for a single file. Update the test directory in `package.json`` to swap files
Use npm run gen to turn CSV files in /src/data/rawData into JSON (keep exact filename when downloading from Google Sheets)