|
@@ -9,7 +9,7 @@ import LDAPFactory from './src/ldapInterface';
|
|
|
import { Session } from './src/Security';
|
|
import { Session } from './src/Security';
|
|
|
import Security from './src/Security';
|
|
import Security from './src/Security';
|
|
|
|
|
|
|
|
-const debug = require('debug')('my express app');
|
|
|
|
|
|
|
+const debug = require('debug')('LDAPManager:http');
|
|
|
const app = express();
|
|
const app = express();
|
|
|
|
|
|
|
|
declare global {
|
|
declare global {
|
|
@@ -76,7 +76,7 @@ app.use((err: any, req: any, res: any, next: any) => { // eslint-disable-line @t
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-app.set('port', process.env.PORT || 3000);
|
|
|
|
|
|
|
+app.set('port', process.env.PORT || 8080);
|
|
|
|
|
|
|
|
const server = app.listen(app.get('port'), function () {
|
|
const server = app.listen(app.get('port'), function () {
|
|
|
debug(`Express server listening on port ${(server.address() as AddressInfo).port}`);
|
|
debug(`Express server listening on port ${(server.address() as AddressInfo).port}`);
|