perling/sync-perizinan.bat

16 lines
427 B
Batchfile

@echo off
REM Perizinan Data Sync Script
REM Runs daily at midnight to sync data from API
cd /d "C:\laragon\www\perling"
REM Log start time
echo [%date% %time%] Starting perizinan data sync >> storage\logs\cron.log
REM Run the sync command
php artisan perizinan:sync >> storage\logs\cron.log 2>&1
REM Log completion
echo [%date% %time%] Perizinan data sync completed >> storage\logs\cron.log
echo. >> storage\logs\cron.log