diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-04-13 10:14:04 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-04-13 10:14:04 -0400 |
| commit | cabc86b83951b9fefb7e864fba82f1d93715c805 (patch) | |
| tree | 26795af6522c07f68cfaea66a7e88965e0480cf0 /backend | |
| parent | 97b6de6aa437f7a913a33b9e6aa18a919faf2caf (diff) | |
variables
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'); |
