Spaces:
Runtime error
Runtime error
Download index.js from OptiCastDigital/n8n: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/OptiCastDigital/n8n/resolve/main/index.js
- Command line
-
hf download hf://spaces/OptiCastDigital/n8n/index.js
-
curl -L -o index.js https://huggingface.co/spaces/OptiCastDigital/n8n/resolve/main/index.js
353 Bytes
| import { exec } from "child_process"; | |
| const cmd = "n8n start --tunnel --host=0.0.0.0 --port=7860"; | |
| const n8nProcess = exec(cmd); | |
| n8nProcess.stdout.on("data", (data) => console.log(data.toString())); | |
| n8nProcess.stderr.on("data", (data) => console.error(data.toString())); | |
| n8nProcess.on("close", (code) => console.log(`n8n exited with code ${code}`)); | |