|
|
- const cp = require('child_process');
- const express = require("express");
- const path = require("path");
- const mongoose = require("mongoose");
- const bodyParser = require("body-parser");
- const session = require('express-session');
- const expressWs = require('express-ws');
-
-
-
- codeserver = cp.execFile('sudo', [
- 'code-server',
- '--user-data-dir=/root/codedata',
- '--auth=none',
- '--bind-addr=0.0.0.0:80'
- ], function(error, stdout, stderr) {
- });
- console.log("B");
|