mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
5b16aedf27
# Path: step_1/for_each/if_else/if/change_file_extension
# UUID: 2280548e-95c8-47c4-b2f9-bf9de14b45f1
# Changed files:
example/traefik/compose.ts
- 6f405778b3
16 lines
361 B
TypeScript
16 lines
361 B
TypeScript
// traefik-compose.ts
|
|
|
|
import * as express from 'express';
|
|
import * as http from 'http';
|
|
|
|
const app = express();
|
|
const server = http.createServer(app);
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello from Traefik Compose Example!');
|
|
});
|
|
|
|
const PORT = process.env.PORT || 3000;
|
|
server.listen(PORT, () => {
|
|
console.log(`Server is running on port ${PORT}`);
|
|
});
|