Skip to content
Permalink
Browse files

Update beesbuzz.biz setup example

  • Loading branch information...
fluffy-critter committed Jun 1, 2019
1 parent 06cde05 commit 5ee99272465e09f5b75586ec2f823a3a7d50d3e9
Showing with 10 additions and 7 deletions.
  1. +10 −7 README.md
@@ -102,15 +102,14 @@ pushl -r https://example.com/feed -s http://example.com/feed http://alt-domain.e

### My setup

I use [`pipenv`](http://pipenv.org) to keep my Python environments separate. My initial setup looked something like this:
In my setup, I have `pushl` installed in my website's pipenv:

```bash
mkdir $HOME/pushl
cd $HOME/pushl
cd $HOME/beesbuzz.biz
pipenv install pushl
```

and created this script as `$HOME/pushl/run.sh`:
and created this script as `$HOME/beesbuzz.biz/pushl.sh`:

```bash
#!/bin/sh
@@ -125,15 +124,19 @@ else
fi
date
flock -n run.lock $HOME/.local/bin/pipenv run pushl -rvvc cache \
https://beesbuzz.biz/feed http://publ.beesbuzz.biz/feed \
flock -n run.lock $HOME/.local/bin/pipenv run pushl -rvvc $HOME/var/pushl \
https://beesbuzz.biz/feed \
http://publ.beesbuzz.biz/feed \
https://tumblr.beesbuzz.biz/rss \
-s http://beesbuzz.biz/feed
```

Then I have a cron job:

```crontab
*/5 * * * * $HOME/pushl/run.sh quiet
*/5 * * * * $HOME/beesbuzz.biz/pushl.sh quiet
```

which runs it every 5 minutes.

I also have a [git deployment hook](http://publ.beesbuzz.biz/441) for my website, and its final step (after restarting `gunicorn`) is to run `pushl.sh`, in case a maximum latency of 5 minutes just isn't fast enough.

0 comments on commit 5ee9927

Please sign in to comment.
You can’t perform that action at this time.