filesafe/scripts
Bobby Wibowo df9887386a
Merge branch 'camjac251-camjac251-build-action' into safe.fiery.me
Also updated bump-versions.js to NOT require utilsController.js.
This is required to make sure GitHub runner can execute the script
without config.js existing in root directory.
To begin with the script don't particularly need anything much from the
said controller.
2020-07-30 05:09:08 +07:00
..
bump-versions.js Merge branch 'camjac251-camjac251-build-action' into safe.fiery.me 2020-07-30 05:09:08 +07:00
cf-purge.js Updates (very important to read) 2019-09-15 13:20:11 +07:00
clean-up.js Updated 2019-09-19 19:10:37 +07:00
delete-expired.js Updated 2020-05-16 21:45:14 +07:00
README.md Updated scripts/README.md again again 2019-09-19 20:44:48 +07:00
thumbs.js Updated thumbs.js 2020-05-28 04:23:26 +07:00

README

cf-purge.js

$ yarn cf-purge
$ node ./scripts/cf-purge.js

Purge Cloudflare's cache.

Usage:
node scripts/cf-purge.js ...filename

filename:
Upload names separated by space (will automatically include their thumbs if available).

clean-up.js

$ yarn clean-up -h
$ node ./scripts/clean-up.js -h

Clean up files that are not in the database.

Usage:
node scripts/clean-up.js [mode=0|1|2]

mode:
0 = Only list names of files that are not in the database.
1 = Clean up the files.

delete-expired.js

$ yarn delete-expired -h
$ node ./scripts/delete-expired.js -h

Bulk delete expired files.

Usage:
node scripts/delete-expired.js [mode=0|1|2]

mode:
0 = Only list names of the expired files.
1 = Delete expired files (output file names).
2 = Delete expired files (no output).

thumbs.js

[...]

bump-versions.js

[...]