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:
parent
71a25f54a6
commit
984174f8b8
@ -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')}`);
|
||||
});
|
||||
|
@ -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);
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user