From 8c69700b7f1456f3c4113e5325d2f5493df51df5 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Sun, 13 Jan 2019 17:48:27 +0000 Subject: [PATCH] Lower logging volume --- Procfile | 1 - README.md | 8 +++----- app.js | 4 +++- package.json | 2 +- yarn.lock | 6 +++--- 5 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 Procfile diff --git a/Procfile b/Procfile deleted file mode 100644 index 063b78f..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: npm start diff --git a/README.md b/README.md index a89ecf9..3271a11 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ # Hostr ## About -Hostr is a project I started almost ten years ago when I set out to learn web development. Since then it's seen over 100,000 signups and served up over 2 billion file downloads. +Hostr is a project I started over ten years ago when I set out to learn web development. Since then it's seen over 100,000 signups and served up over 2 billion file downloads. -It has been through many iterations, but in its current incarnation Hostr uses [Koa](http://koajs.com/) for the backend, [Angular](https://angular.io/) and [JSPM](http://jspm.io) for the frontend, and [Babel](https://babeljs.io/) for both. +It has been through many iterations, but in its current incarnation Hostr uses [Koa](http://koajs.com/) for the backend, [Angular](https://angular.io/) and [Webpack](http://jspm.io) for the frontend, and [Babel](https://babeljs.io/) for both. ## Getting Started ### Dependencies -Everything is taken care of by an `make build`. +Everything is taken care of by a `make build`. ### Enviroment Variable Configuration @@ -35,8 +35,6 @@ $ make init migrate $ make test ``` -Running the tests will also set the indexes required for Mongo. - ## Licence My primary motivation is to get to work on Hostr in public. Contributions are welcome and all Javascript is Apache licenced, however the brand is not. The brand includes the name, logo images, CSS and marketing HTML. diff --git a/app.js b/app.js index 2642412..4926006 100644 --- a/app.js +++ b/app.js @@ -53,7 +53,9 @@ app.use(async (ctx, next) => { app.use(session(app)); app.use(redis.middleware()); -app.use(logger()); +if (process.env.DEBUG === 'true') { + app.use(logger()); +} app.use(compress()); app.use(bodyparser()); diff --git a/package.json b/package.json index 6eefcd6..b82e00d 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "co-views": "~2.1.0", "copy-webpack-plugin": "^4.5.2", "debug": "~3.1.0", - "dropzone": "~4.0.1", + "dropzone": "~5.5.1", "ejs": "^2.6.1", "form-data": "^2.3.2", "http-errors": "^1.7.0", diff --git a/yarn.lock b/yarn.lock index fb5d775..790d105 100755 --- a/yarn.lock +++ b/yarn.lock @@ -1877,9 +1877,9 @@ double-ended-queue@^2.1.0-0: version "2.1.0-0" resolved "https://registry.yarnpkg.com/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz#103d3527fd31528f40188130c841efdd78264e5c" -dropzone@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-4.0.1.tgz#9e6e3430a85bd5ee8f430f058abd0c877b25fbec" +dropzone@~5.5.1: + version "5.5.1" + resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.5.1.tgz#06e2f513e61d6aa363d4b556f18574f47cf7ba26" duplexer3@^0.1.4: version "0.1.4"