You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
460 B

пре 3 година
  1. const cp = require('child_process');
  2. const express = require("express");
  3. const path = require("path");
  4. const mongoose = require("mongoose");
  5. const bodyParser = require("body-parser");
  6. const session = require('express-session');
  7. const expressWs = require('express-ws');
  8. codeserver = cp.execFile('sudo', [
  9. 'code-server',
  10. '--user-data-dir=/root/codedata',
  11. '--auth=none',
  12. '--bind-addr=0.0.0.0:80'
  13. ], function(error, stdout, stderr) {
  14. });
  15. console.log("B");