shortened GRAPHQL_LISTEN_PORT to GRAPHQL_PORT

This commit is contained in:
Grzegorz Leoniec 2018-11-21 15:30:26 +01:00
parent 46c0289881
commit fa2c3fc24b
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=letmein
GRAPHQL_LISTEN_PORT=4000
GRAPHQL_PORT=4000
GRAPHQL_URI=http://localhost:4000
MOCK=false

View File

@ -12,7 +12,7 @@ services:
- 4000:4000
environment:
- NEO4J_URI=bolt://neo4j:7687
- GRAPHQL_LISTEN_PORT=4000
- GRAPHQL_PORT=4000
- GRAPHQL_URI=http://localhost:4000
- CLIENT_URI=http://localhost:3000
- JWT_SECRET=b/&&7b78BF&fv/Vd

View File

@ -21,7 +21,7 @@ spec:
- env:
- name: CLIENT_URI
value: http://localhost:3000
- name: GRAPHQL_LISTEN_PORT
- name: GRAPHQL_PORT
value: "4000"
- name: GRAPHQL_URI
value: http://localhost:4000

View File

@ -7,7 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start": "./node_modules/.bin/nodemon --exec babel-node src/index.js",
"start:debug": "./node_modules/.bin/nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js",
"db:seed": "concurrently --kill-others --success first 'cross-env GRAPHQL_URI=http://localhost:4001 PERMISSIONS=disabled GRAPHQL_LISTEN_PORT=4001 yarn run start' 'wait-on tcp:4001 && cross-env GRAPHQL_URI=http://localhost:4001 ./node_modules/.bin/babel-node src/seed/seed-db.js'"
"db:seed": "concurrently --kill-others --success first 'cross-env GRAPHQL_URI=http://localhost:4001 PERMISSIONS=disabled GRAPHQL_PORT=4001 yarn run start' 'wait-on tcp:4001 && cross-env GRAPHQL_URI=http://localhost:4001 ./node_modules/.bin/babel-node src/seed/seed-db.js'"
},
"author": "Grzegorz Leoniec",
"license": "MIT",

View File

@ -61,7 +61,7 @@ server.express.use(passport.initialize())
server.express.post('/graphql', passport.authenticate(['jwt'], { session: false }))
const serverConfig = {
port: process.env.GRAPHQL_LISTEN_PORT
port: process.env.GRAPHQL_PORT
// cors: {
// credentials: true,
// origin: [process.env.CLIENT_URI] // your frontend url.