INNER CODE UNIT · JavaScript

isWebhookServerRunning

alohe/quicky · index.js:1601

		const isWebhookServerRunning = () => {
			if (!config.webhook?.pm2Name) return false;
			const info = getPm2Status(config.webhook.pm2Name);
			return info?.status === "online";
		};

		const handleRestart = async () => {
			try {
				if (
					!fs.existsSync(
						path.join(webhookPath, "node_modules"),
					)
				) {
					log(
						chalk.yellow(
							"node_modules not found. Running npm install...",
						),
					);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…