Commit graph

8 commits

Author SHA1 Message Date
Brett Smith
ab0b2401db website-update: Take PRODUCTION_BRANCH from the environment. 2019-11-23 09:18:23 -05:00
Brett Smith
2aaea4b783 website-update: Don't define SITEDIR in the script.
Prefer setting WorkingDirectory.
2019-11-23 09:14:45 -05:00
Brett Smith
df3eaea616 website-update: Remove lockdir code.
Now that we're running as a systemd service, that will make sure
only one update runs at a time.
2019-11-23 09:12:35 -05:00
Brett Smith
d5e4646ca5 website-update: Stop updating the database.
Move this to a separate service.
2019-11-23 09:12:12 -05:00
Brett Smith
4c8232a284 website-update: Make sqlite loading more robust.
* Bail on the first error.
* Allow 30 seconds to open a locked table.
2017-11-10 11:45:58 -05:00
Brett Smith
985ce2fb6c cron: Exclude what are obviously scripts from compilation.
The impetus here is to stop the script from trying to compile and
complaining about
<www/conservancy/static/projects/policies/publish-travel-policy.py>, which
is a script written in Python 3 meant to help with repository maintenance.

Excluding files with `-` in the name seems reasonable since they can't be
modules anyway, so there's no reason to compile them.

This will start failing if we add a similar script later that doesn't have a
`-` in its name.
2017-09-26 13:57:42 -04:00
Brett Smith
e1d4fdfaba cron: Add script to update production web site checkout. 2016-11-18 17:05:49 -05:00
Bradley M. Kuhn
cca28f0a0f Added cron job. 2010-09-26 19:41:19 -04:00