From b286797db1e1a573e0451a07cbd9cce13c391e2f Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Mon, 4 Apr 2022 13:11:54 +0200 Subject: [PATCH] Initial Home page --- Home.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..1a41528 --- /dev/null +++ b/Home.md @@ -0,0 +1,15 @@ +Welcome to the cisticola wiki! + +## Deployment notes + +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. + +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 +32 * * * * . $HOME/.profile; cd /root/cisticola; /usr/bin/flock -w 0 media.lock pipenv run python app.py archive-media +``` + +`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. \ No newline at end of file