NCVotes / voters-ingestor

Django app to create and configure Postgres DB, then fetch and process public voter registration and voter history files from N.C. Board of Elections
MIT License
10 stars 1 forks source link

WIP: Set up prod deploy DIS-200 #18

Closed vkurup closed 6 years ago

vkurup commented 6 years ago

The server is deployed: https://ncvotes.caktus-built.com/admin/

But this is not ready. I need to write some documentation, add a task to install the 'unzip' package, and figure out a couple other oddities.

HTTPS on the AWS load balancer wasn't set up properly. It was sending encrypted requests to port 80 which was confusing nginx. I manually fixed it in the AWS console.

Also, the RDS user and initial DB were slightly different than what we have been using. (ncvotes vs ncvoter). Just in case you're wondering why there's an empty DB there named ncvotes_production. We're using ncvoter_production.

I've kicked off the fetch process and it downloaded all the snapshots except for the last few before we ran out of disk space. I've now started the voter_process_snapshot in a screen session. Once we've done the first few, we can delete those snapshot files and re-fetch the newer ones.