Files
scrypted/server/bin/scrypted-serve

6 lines
225 B
JavaScript

#!/usr/bin/env node
const { spawn } = require('child_process');
const path = require('path');
const mainPath = path.join(__dirname, '../dist/scrypted-main.js');
spawn('node', ['--expose-gc', mainPath], { stdio: 'inherit' });