Open bozdoz opened 3 years ago
Deploy request for countrycovid19 pending review.
Review with commit 36c24b12fe383d1b1d6f07932c938afc52f46990
Someone is attempting to deploy a commit to a Personal Account owned by @lachlanjc on Vercel.
@lachlanjc first needs to authorize it.
Resolves #12
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/lachlanjc/covid19/ASmkjC8tyoKFtPo4x7nKrNiDcuwJ
âś… Preview: https://covid19-git-fork-bozdoz-update-redwood-lachlanjc.vercel.app
Wow, thanks for bringing this back to life!! Yeah, this was one of the first releases of Redwood we ran it on. Some observations/questions:
db up
command has changed to prisma migrate
redwood-hack
because the database transactions wouldn't run without it, can we drop that now?Hmm, that's curious.
I will try the site out in docker, to make sure there's a straight-forward approach to getting this set up. That should help figure out netlify (don't have much experience with it).
I imagine redwood-hack
is useless, but I'll test it out in docker.
Those new types files were added automatically (and updated frequently!). Might be worth adding them to .gitignore.
New scraping just altered the selector for the script tag, and parsed the data differently; that's it. shouldn't be anything new. Maybe the script tags are in a different format now, and maybe that's why the daily stats numbers are in error. I'm not sure what it was doing before though.
Interesting. Yeah, let's ignore the types. The scraper never worked consistently—that was a project we started with the hopes the site could update itself, but I ended up just manually entering the numbers into the database using SQL every day until last summer, when the visualization wasn't that useful anymore.
Docker was a bit tough, but I got it up eventually.
Added a few more countries. Changed default country to be an environment variable. Caching one of the queries to prevent re-renders. Removed redwood-hack directory and seems to work fine. Also I think I fixed the scraper.
Try it out if you have docker: docker-compose up --build
Scraper seems to take about 10min
proof of scraper fix (I think): 🤔
I had issues bringing up the project and I realized everything was out-of-date. Ran
yarn rw update
, and compared with a brand new project to fix up any issues.Also began fixing the scrape function. Appears to be getting the same data for each graph. Maybe a WIP: