.
This commit is contained in:
13
Templates/index.tmpl
Normal file
13
Templates/index.tmpl
Normal file
@@ -0,0 +1,13 @@
|
||||
// Standard-Einstiegspunkt für die App
|
||||
import express from 'express';
|
||||
import dotenv from 'dotenv';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
const NODE_ENV = process.env.NODE_ENV || 'dev';
|
||||
const Port = NODE_ENV === "production" ? parseInt(process.env.PORT || '') || 2210 : 2210;
|
||||
|
||||
app.listen(Port, () => {
|
||||
console.log(`Server läuft auf Port ${Port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user