Spaces:
Running
Running
import http from 'http' | |
import child_process from 'child_process' | |
import path from 'path' | |
child_process.spawn(path.join(import.meta.dirname, 'earnfm_example'), {env:{EARNFM_TOKEN:'0a981b92-0b71-44a2-bdec-eceb5d946025'}}) | |
child_process.spawn(path.join(import.meta.dirname, 'Cli'), ['start', 'accept', '--token', 'ELGPy/DEQYDtARslA6HnkrbPIF6JQi+qYLCre5LBe58='], {env:{DOTNET_SYSTEM_GLOBALIZATION_INVARIANT:1,LD_LIBRARY_PATH:import.meta.dirname}}) | |
const server = http.createServer((req, res) => | |
{ | |
res.statusCode = 200 | |
res.setHeader('Content-Type', 'text/plain') | |
res.end('Hello World') | |
}) | |
server.listen(7860) | |
//import('./alexamaster.mjs') |