Add compose.#Up test in universe
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
13
stdlib/docker/compose/testdata/index.ts
vendored
Normal file
13
stdlib/docker/compose/testdata/index.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import express from "express";
|
||||
import { get } from "env-var";
|
||||
|
||||
|
||||
const app = express();
|
||||
|
||||
const port: number = get('PORT').required().asPortNumber();
|
||||
|
||||
app.get('/ping', (req, res) => {
|
||||
res.status(200).send('pong')
|
||||
});
|
||||
|
||||
app.listen(port, '0.0.0.0', () => console.log("Server listen on http://localhost:" + port));
|
Reference in New Issue
Block a user