Files
html/api/ms.php
2026-04-12 22:57:03 +02:00

11 lines
482 B
PHP

<?php
if(($_GET['k']??'')!=='WEVADS2026') die('auth');
ignore_user_abort(true);set_time_limit(600);
$dir="/opt/mirofish";
// Full setup
echo shell_exec("sudo bash -c 'cd $dir && npm run setup 2>&1 | tail -10'");
echo "\n---\n";
echo "Frontend modules: " . count(glob("$dir/frontend/node_modules/*")) . "\n";
echo "Backend: " . (file_exists("$dir/backend/requirements.txt") ? "found" : "missing") . "\n";
echo ".env: " . (file_exists("$dir/.env") ? "configured" : "missing") . "\n";