diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/.gitignore | 2 | ||||
| -rw-r--r-- | backend/README.md | 6 | ||||
| -rw-r--r-- | backend/src/createServer.js | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/backend/.gitignore b/backend/.gitignore index 2a907ab..2ad89a8 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -4,5 +4,5 @@ node_modules .idea .vscode *.log -.env* +*.env* !.env-sample diff --git a/backend/README.md b/backend/README.md index 2aab87c..56c5b9c 100644 --- a/backend/README.md +++ b/backend/README.md @@ -30,9 +30,3 @@ if in trouble, run `prisma local nuke` 1. go to your settings and turn on unsigned uploading 2. - - -## TODO: -1. When an item is deleted, the cartItems need to be deleted as well -1. When an order goes through, delete cartItems - diff --git a/backend/src/createServer.js b/backend/src/createServer.js index 57518b2..df016a7 100644 --- a/backend/src/createServer.js +++ b/backend/src/createServer.js @@ -1,6 +1,8 @@ const { GraphQLServer } = require('graphql-yoga'); const { Prisma } = require('prisma-binding'); -require('dotenv').config(); +require('dotenv').config({ path: 'variables.env' }); + +console.log(process.env.PRISMA_STAGE); const Mutation = require('./resolvers/Mutation'); const Query = require('./resolvers/Query'); |
