Skip to content

Commit 4dbeb3f

Browse files
committed
2345
1 parent d5ccd2a commit 4dbeb3f

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ process.on('unhandledRejection', (reason, promise) => {
158158
// Don't exit the process, just log the error
159159
});
160160

161-
// Improve the export for Passenger
162-
if (typeof(PhusionPassenger) !== 'undefined') {
163-
PhusionPassenger.configure({ autoInstall: false });
164-
161+
// Export for Passenger
162+
module.exports = app;
163+
164+
// Start Server when directly executed
165165
if (require.main === module) {
166166
const port = process.env.PORT || 80;
167167
app.listen(port, () => {
168-
console.log(`VATSIM PMP running in standalone mode on port ${port}`);
168+
console.log(`VATSIM PMP running on port ${port}`);
169169
});
170170
}
171-
}
171+

passenger.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

restart.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
#!/bin/bash
2-
touch tmp/restart.txt
3-
echo "App restart triggered at $(date)"

0 commit comments

Comments
 (0)