From cabc86b83951b9fefb7e864fba82f1d93715c805 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 13 Apr 2018 10:14:04 -0400 Subject: variables --- backend/.gitignore | 2 +- backend/README.md | 6 ------ backend/src/createServer.js | 4 +++- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'backend') 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'); -- cgit v1.3