Compare commits

..

No commits in common. "main" and "v0.2.5" have entirely different histories.
main ... v0.2.5

2 changed files with 2 additions and 18 deletions

View File

@ -19,25 +19,9 @@ async function startServer() {
const PORT = process.env.PORT || 6000;
const httpServer = app.listen(PORT, () => {
app.listen(PORT, () => {
console.log(`🚀 Server ready at http://localhost:${PORT}${server.graphqlPath}`);
});
const shutdown = async (signal: string) => {
console.log(`${signal} received, shutting down gracefully...`);
httpServer.close(() => {
console.log('HTTP server closed');
});
await server.stop();
console.log('Apollo server stopped');
process.exit(0);
};
process.on('SIGTERM', () => shutdown('SIGTERM'));
process.on('SIGINT', () => shutdown('SIGINT'));
}
startServer().catch(error => {

View File

@ -7,7 +7,7 @@ services:
VERIFIED_PARTICIPANTS_PATH: /tmp/watcher-data/verified-participants.json
GENERATED_WATCHER_EVENTS_OUTPUT_PATH: /tmp/watcher-data/generated
working_dir: /app/
command: ["node", "--enable-source-maps", "dist/index.js"]
command: "node --enable-source-maps dist/index.js"
volumes:
- watcher-data:/tmp/watcher-data
ports: