deployment-engine/dist/main.js

16 lines
477 B
JavaScript
Raw Normal View History

2023-03-12 08:48:59 -04:00
import { listen } from './routes.js';
import { PORT } from './config.js';
import * as npm from './apis/npm.js';
// const id = await createContainer('hello-world');
// const stream = await attachLogs(id)
// stream.pipe(process.stdout);
// await new Promise(res => {
// stream.on('close', () => {
// res(void 0);
// })
// })
await npm.ready;
listen(PORT);
// console.log(await getProxyHosts());
// console.log((await listContainers()).map(container => container.Names));