Dockerfile inital

This commit is contained in:
Julian Krauser 2024-10-21 10:38:14 +02:00
parent 72fb6fbc20
commit 3907482b06
4 changed files with 39 additions and 9 deletions

View file

@ -22,7 +22,7 @@ const app = express();
import router from "./routes/index";
import { PermissionObject } from "./type/permissionTypes";
router(app);
app.listen(SERVER_PORT, () => {
app.listen(process.env.NODE_ENV ? SERVER_PORT : 5000, () => {
console.log(`listening on *:${SERVER_PORT}`);
});