Bobby Wibowo e22c180edd Updated scripts/README.md again again 3 weeks ago
..
README.md e22c180edd Updated scripts/README.md again again 3 weeks ago
bump-versions.js a79803cbd6 Updated 3 weeks ago
cf-purge.js c9ba16e1d6 Updates (very important to read) 1 month ago
clean-up.js 8ab77a6464 Updated 3 weeks ago
delete-expired.js 8ab77a6464 Updated 3 weeks ago
thumbs.js c9ba16e1d6 Updates (very important to read) 1 month ago

README.md

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

[...]