From 61792a0dc5bdcaf30d8ecbac4b4f5c3995746212 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Tue, 17 Nov 2020 15:59:16 -0400 Subject: [PATCH] Minor changes --- server/.env.example | 4 ---- server/src/index.js | 6 +++--- server/src/server.js | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/server/.env.example b/server/.env.example index 592b133..8ac4ed3 100755 --- a/server/.env.example +++ b/server/.env.example @@ -23,10 +23,6 @@ WATCHER_GROUP=PP-PTI-Watchers JWT_SECRET=VoceDeveAlterarEstaVariavelECYxhfBk6weKyJupHRaX2VtvZS4Fn7DdscMmrjWP9AbGqgQ3L8 JWT_EXPIRATION=720h -# Prisma -PRISMA_ENDPOINT=http://localhost:4466/ -PRISMA_SECRET=my-super-secret - # Playground PLAYGROUND=true diff --git a/server/src/index.js b/server/src/index.js index 9ec29da..784608b 100755 --- a/server/src/index.js +++ b/server/src/index.js @@ -8,14 +8,14 @@ import './cronTasks' console.log( process.env.NODE_ENV === 'production' - ? 'Running in production' - : 'Running in development' + ? '[Running in production]' + : '[Running in development]' ) server.listen().then(options => { console.log( `\n---\nServer ready!`, - `\nEndpoint: ${options.url}graphql:${options.port} `, + `\nEndpoint: ${options.url}graphql`, `\nWebSocket: ${options.subscriptionsUrl}\n---` ) }) diff --git a/server/src/server.js b/server/src/server.js index 94f1196..b9199e5 100755 --- a/server/src/server.js +++ b/server/src/server.js @@ -22,7 +22,7 @@ const server = new ApolloServer({ ad, req } - }, + }, plugins: [ responseCachePlugin({ sessionId: requestContext =>