mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	remove unused file
This commit is contained in:
		
							parent
							
								
									6cfae5299b
								
							
						
					
					
						commit
						fee7a61b8c
					
				| @ -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