From 984174f8b8cd7ffa004877bad3a56e64bd57aa1c Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sun, 13 Nov 2016 11:14:12 +0100 Subject: [PATCH] remove unused file --- bin/unleash.js | 5 +++-- server-prod.js | 11 ----------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 server-prod.js diff --git a/bin/unleash.js b/bin/unleash.js index a3d0d7a74b..44c491c643 100755 --- a/bin/unleash.js +++ b/bin/unleash.js @@ -3,9 +3,9 @@ process.env.NODE_ENV = 'production'; +const { publicFolder } = require('unleash-frontend'); const program = require('commander'); -const unleash = require('../server-prod.js'); - +const unleash = require('../server-impl.js'); program .option('-p, --port ', 'The port you want to start unleash on') @@ -15,6 +15,7 @@ program unleash.start({ databaseUri: program.databaseUri || process.env.DATABASE_URL, port: program.port || process.env.PORT || 4242, + publicFolder }).then(conf => { console.log(`Unleash started on port:${conf.app.get('port')}`); }); diff --git a/server-prod.js b/server-prod.js deleted file mode 100644 index 8a893b62c2..0000000000 --- a/server-prod.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -const unleash = require('./server-impl'); -const { publicFolder } = require('unleash-frontend'); - -module.exports = { - start: options => { - const opts = Object.assign({}, { publicFolder }, options); - return unleash.start(opts); - }, -};