403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/docgen/current/scripts/deploy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/docgen/current/scripts/deploy/deploy.cjs
/**
 * Docgen - Deployment Router
 *
 * Detects the current platform and delegates to the appropriate
 * platform-specific deployment script, passing all flags through.
 *
 * Usage: node scripts/deploy/deploy.cjs [options]
 *
 * Platform detection:
 *   - Windows (incl. PowerShell, cmd) => scripts/deploy/deploy-windows.cjs
 *   - Linux / WSL / macOS             => scripts/deploy/deploy-linux.cjs
 */

const { execSync } = require('child_process');
const path = require('path');
const os = require('os');

const platform = os.platform();
const args = process.argv.slice(2).join(' ');

let script;
if (platform === 'win32') {
    script = 'deploy-windows.cjs';
} else {
    script = 'deploy-linux.cjs';
}

const scriptPath = path.join(__dirname, script);

console.log(`[deploy] Platform: ${platform} => ${script}`);

try {
    execSync(`node "${scriptPath}" ${args}`, {
        stdio: 'inherit',
        cwd: path.join(__dirname, '..', '..'),
    });
} catch (error) {
    // The child script handles its own error output and exit codes
    process.exit(error.status || 1);
}

Youez - 2016 - github.com/yon3zu
LinuXploit