mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-08 03:18:34 +03:00
Updated Home (markdown)
15
Home.md
15
Home.md
@@ -4,6 +4,8 @@ Welcome to the cisticola wiki!
|
||||
|
||||
The application is deployed on the DO instance `cisticola-prod`. Likewise, the managed DB cluster `cisticola-prod-db` is used to store data. Logan, Miguel, and Tristan all have access to this instance.
|
||||
|
||||
The .env file can be inspected as necessary. This contains information for connecting to the database cluster.
|
||||
|
||||
It is run regularly using the following cron jobs:
|
||||
```
|
||||
2 * * * * . $HOME/.profile; cd /root/cisticola; /usr/bin/flock -w 0 scraper.lock pipenv run python app.py scrape-channels
|
||||
@@ -12,4 +14,15 @@ It is run regularly using the following cron jobs:
|
||||
|
||||
`flock` is used to ensure that there is only one archiver or scraper running at any given point in time.
|
||||
|
||||
The .env file can be inspected as necessary. This contains information for connecting to the database cluster.
|
||||
### Setup
|
||||
|
||||
Currently this is set up and deployed manually. Necessary packages are installed with `apt-get` and `pipenv`.
|
||||
|
||||
There are also two initialization commands that are not automated. Currently those are run manually.
|
||||
|
||||
```
|
||||
pipenv run python app.py init-db
|
||||
pipenv run python app.py sync-channels --gsheet "https://docs.google.com/spreadsheets/d/1UnBxtRVkabKHkDUkLxtFOSIX9akytd-rZyV-H_K1PWg/"
|
||||
```
|
||||
|
||||
## Status monitoring
|
||||
Reference in New Issue
Block a user