Skip to content

Commit

Permalink
Stop using Firebase
Browse files Browse the repository at this point in the history
I'm well over my Firebase Storage hosting limit. Not because I actually
store a lot of data, but because there's no way to delete past versions
of files. See firebase/firebase-tools#215.
  • Loading branch information
guoguo12 committed Dec 13, 2017
1 parent 2edeee0 commit fcc8410
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -4,9 +4,9 @@

## How does it work?

Every five minutes, `backend/census.py` is executed. It connects to each server listed in `backend/server.txt` via SSH and collects information. The results from all of the servers are combined into a single JSON file (`data/latest.json`), which is then uploaded to [Firebase Hosting](https://www.firebase.com/hosting.html).
Every five minutes, `backend/census.py` is executed. It connects to each server listed in `backend/server.txt` via SSH and collects information. The results from all of the servers are combined into a single JSON file (`data/latest.json`), which is hosted on my VPS.

You can view the most recently generated JSON file here: [https://hivemind-data.firebaseapp.com/latest.json](https://hivemind-data.firebaseapp.com/latest.json).
You can view the most recently generated JSON file here: [https://labs.aguo.us/hivemind/data/latest.json](https://labs.aguo.us/hivemind/data/latest.json).

### Overall load formula

Expand Down
3 changes: 0 additions & 3 deletions backend/run_census
@@ -1,11 +1,8 @@
#!/usr/bin/env bash

export FIREBASE_TOKEN=""

TIME=`date +%s`
python census.py > ../data/historical/$TIME.json

cp ../data/historical/$TIME.json ../data/latest.json
timeout 100 /usr/local/bin/firebase deploy --non-interactive --debug
echo $?

23 changes: 0 additions & 23 deletions firebase.json

This file was deleted.

2 changes: 1 addition & 1 deletion js/main.js
@@ -1,4 +1,4 @@
var DATA_URL = 'https://hivemind-data.firebaseapp.com/latest.json';
var DATA_URL = 'https://labs.aguo.us/hivemind/data/latest.json';

var OFFLINE = false;

Expand Down

0 comments on commit fcc8410

Please sign in to comment.