aboutsummaryrefslogtreecommitdiff
path: root/conf/cron
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-06-09 19:28:30 +0200
committerGitHub <noreply@github.com>2020-06-09 19:28:30 +0200
commit01d0696ff7d2a60a3911089cefc0221cf73eca1d (patch)
treef0ee80538ae4d3f5d51823bed49ec7169b954a06 /conf/cron
parent6b30109fc986d83166b1805ec3ad7e28200e3743 (diff)
parentd3df899e0a99a63ee1cf7ad845cc513aeaaf30ef (diff)
downloadmastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.tar.gz
mastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.tar.bz2
mastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.zip
make some cleaning of scripts
make some cleaning of scripts
Diffstat (limited to 'conf/cron')
-rw-r--r--conf/cron7
1 files changed, 5 insertions, 2 deletions
diff --git a/conf/cron b/conf/cron
index 9a984a3..776808b 100644
--- a/conf/cron
+++ b/conf/cron
@@ -1,2 +1,5 @@
-RAILS_ENV=production
-@daily cd __FINAL__PATH__/live && /opt/rbenv/versions/2.6.5/bin/bundle exec rake __USER__:media:remove_remote
+@daily cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl media remove
+@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl media remove-orphans
+@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl accounts cull
+@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl statuses remove
+@monthly cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl preview_cards remove