Files
zemailnator/cleanCron.php
idevakk c312ec3325 feat: Prepare Zemailnator for Dokploy deployment
- Add highly optimized Dockerfile with Nginx and PHP-FPM 8.4
- Add docker-compose.yml configured with Redis and MariaDB 10.11
- Implement entrypoint.sh and supervisord.conf for background workers
- Refactor legacy IMAP scripts into scheduled Artisan Commands
- Secure app by removing old routes with hardcoded basic auth credentials
- Configure email attachments to use Laravel Storage instead of insecure public/tmp
2026-02-28 23:17:39 +05:30

25 lines
644 B
PHP

<?php
// Adjust this path if your file location is different
require __DIR__.'/vendor/autoload.php';
// Bootstrap the Laravel application
$app = require_once __DIR__.'/bootstrap/app.php';
// Make the Console Kernel instance
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
try {
// Run the Artisan command
$exitCode = $kernel->call('mailbox:clean');
// Get the output of the command
$output = $kernel->output();
echo "Artisan command executed successfully. Exit code: $exitCode\n";
echo "Output:\n$output";
} catch (\Exception $e) {
echo 'Error running Artisan command: '.$e->getMessage();
}