1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

remove unused file

This commit is contained in:
ivaosthu 2016-11-13 11:14:12 +01:00 committed by Ivar Conradi Østhus
parent 71a25f54a6
commit 984174f8b8
2 changed files with 3 additions and 13 deletions

View File

@ -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 <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')}`);
});

View File

@ -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);
},
};