@L11K/

WiltedMonstrousBot

Nodejs

No description

fork
loading
Files
  • index.js
  • src
  • .dockerignore
  • .env.example
  • .gitattributes
  • .gitignore
  • .travis.yml
  • docker-compose.yml
  • Dockerfile
  • graphql.config.json
  • LICENSE
  • nodemon.json
  • ormconfig.json
  • package-lock.json
  • package.json
  • Procfile
  • start.bat
  • tsconfig.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
const { spawnSync } = require('child_process')

console.log('Running command...')

const shell = spawnSync('npm start', { encoding: 'utf-8', shell: true, stdio: 'inherit'})

const http = require('http');

http.createServer(function (req, res) {
  res.write("I'm alive");
  res.end();
}).listen(8080);
node v10.16.0