From 8058f88ad1c23022449e0c6c9a3a0635c316c0ac Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Mon, 21 Aug 2017 13:15:21 +1000 Subject: [PATCH] Files upload to a Git ignored directory within the project. --- .gitignore | 2 -- api/.gitignore | 3 +++ api/server.js | 2 +- app/.gitignore | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fd53c12..ac1e8f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ node_modules *.log -.env .DS_Store -db.json diff --git a/api/.gitignore b/api/.gitignore index 9b1c8b1..5eb947d 100644 --- a/api/.gitignore +++ b/api/.gitignore @@ -1 +1,4 @@ /dist +/uploads +db.json +.env diff --git a/api/server.js b/api/server.js index ccf57ce..0049827 100644 --- a/api/server.js +++ b/api/server.js @@ -25,7 +25,7 @@ app // GraphQL API router.post( '/graphql', - apolloUploadKoa({ uploadDir: '/tmp/apollo-upload-examples' }), + apolloUploadKoa({ uploadDir: './uploads' }), graphqlKoa({ schema }) ) diff --git a/app/.gitignore b/app/.gitignore index a680367..30ac636 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ .next +.env