diff --git a/Procfile b/Procfile index 95f93cb5..45fe1df7 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ -cleanup: rake cleanup:everything +cleanup: bundle exec rake cleanup:everything stats: bundle exec rake stats:process_all diff --git a/monit.conf b/monit.conf index 3aa37842..6e5e8b64 100644 --- a/monit.conf +++ b/monit.conf @@ -1,6 +1,6 @@ # Limpiar mensualmente check program cleanup - with path "/usr/bin/foreman run -f /srv/Procfile -d /srv " as uid "rails" gid "www-data" + with path "/usr/bin/foreman run -f /srv/Procfile -d /srv cleanup" as uid "rails" gid "www-data" every "0 3 1 * *" if status != 0 then alert