summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-13 10:14:04 -0400
committerWes Bos <wesbos@gmail.com>2018-04-13 10:14:04 -0400
commitcabc86b83951b9fefb7e864fba82f1d93715c805 (patch)
tree26795af6522c07f68cfaea66a7e88965e0480cf0 /backend
parent97b6de6aa437f7a913a33b9e6aa18a919faf2caf (diff)
variables
Diffstat (limited to 'backend')
-rw-r--r--backend/.gitignore2
-rw-r--r--backend/README.md6
-rw-r--r--backend/src/createServer.js4
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');