aboutsummaryrefslogtreecommitdiff
path: root/conf/cron
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-06-03 20:46:14 +0200
committerGitHub <noreply@github.com>2020-06-03 20:46:14 +0200
commitdf0587009fbad43a6e083da2883707f421d7a36e (patch)
treeb93e9ffb74da537fc74a0a35541cfab943dd8d3d /conf/cron
parentee08de04d42a5e9831f500242bd99d4cb63fbd19 (diff)
parent8fea96dcd81f40923ba2f599c3b7ab838429f2de (diff)
downloadmastodon_ynh-df0587009fbad43a6e083da2883707f421d7a36e.tar.gz
mastodon_ynh-df0587009fbad43a6e083da2883707f421d7a36e.tar.bz2
mastodon_ynh-df0587009fbad43a6e083da2883707f421d7a36e.zip
Merge pull request #224 from YunoHost-Apps/cleaning
Cleaning
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