14 lines
359 B
Cheetah
14 lines
359 B
Cheetah
// 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}`);
|
|
});
|