feat: add due date reminders functionality with cron jobs and test scripts
This commit is contained in:
@@ -25,6 +25,13 @@ echo "⏰ Setting up daily backup cron job..."
|
||||
echo "0 2 * * * cd /app && node backup-db.mjs >> /app/data/backup.log 2>&1" > /etc/cron.d/backup-cron
|
||||
chmod 0644 /etc/cron.d/backup-cron
|
||||
crontab /etc/cron.d/backup-cron
|
||||
|
||||
# Set up daily due date reminders cron job (runs at 3 AM daily)
|
||||
echo "⏰ Setting up daily due date reminders cron job..."
|
||||
echo "0 3 * * * cd /app && node send-due-date-reminders.mjs >> /app/data/reminders.log 2>&1" > /etc/cron.d/reminders-cron
|
||||
chmod 0644 /etc/cron.d/reminders-cron
|
||||
crontab -l | cat - /etc/cron.d/reminders-cron > /tmp/crontab.tmp && crontab /tmp/crontab.tmp
|
||||
|
||||
service cron start
|
||||
|
||||
# Start the development server
|
||||
|
||||
Reference in New Issue
Block a user