From 86d82fefc6dfa02a8091ecef6ca678c3cec7f057 Mon Sep 17 00:00:00 2001 From: Hunterpp Date: Sun, 18 Jul 2021 12:25:16 -0400 Subject: [PATCH] fix for heroku --- README.md | 4 +--- app.js | 5 ----- routes/index.js | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index ea5ee2d..84b672c 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,7 @@ All the necessary components, and some nice-to-haves to get a node.js app runnin Kaltura has a rich and comprehensive [Analytics API](https://developer.kaltura.com/api-docs/Video-Analytics-and-Insights/media-analytics.html) that you can use to generate your own reports and analyses. You can also implement Kaltura's ready made Analytics javascript widget which provides some of the most frequently requested insights. -![analytics_screen](/Users/hunterp/Documents/GitHub/analytics/readme_assets/analytics_screen.png) - - +![analytics_screen](readme_assets/analytics_screen.png) diff --git a/app.js b/app.js index 141cb4f..6661df6 100644 --- a/app.js +++ b/app.js @@ -1,11 +1,6 @@ require('dotenv').config(); const fs = require('fs'); -if(!fs.existsSync("./.env")) { - console.log(".env file not found. Quitting"); - process.exit(1); -} - var createError = require('http-errors'); var express = require('express'); var path = require('path'); diff --git a/routes/index.js b/routes/index.js index f13f899..6a49cc6 100644 --- a/routes/index.js +++ b/routes/index.js @@ -5,7 +5,6 @@ const path = require('path'); const kaltura = require('kaltura-client'); var KalturaClientFactory = require('../lib/kalturaClientFactory'); - /* GET home page. */ router.get('/', async function (req, res, next) { try {