mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
Minor fixes after feedback #150
This commit is contained in:
parent
100e99db7e
commit
c00cf70cf1
@ -8,7 +8,7 @@ function findUnleashApiRoot () {
|
||||
return path.dirname(require.resolve('unleash-api/package.json'));
|
||||
} catch (e) {}
|
||||
try {
|
||||
return path.dirname(require.resolve('../unleash-api'));
|
||||
return path.dirname(require.resolve('../unleash-api/package.json'));
|
||||
} catch (e) {}
|
||||
return process.cwd();
|
||||
}
|
||||
|
@ -5,11 +5,11 @@
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
const program = require('commander');
|
||||
const unleash = require('./server.js');
|
||||
const unleash = require('../server.js');
|
||||
|
||||
|
||||
program
|
||||
.option('-p, --port <port>', 'The full port you want to start unleash on.')
|
||||
.option('-p, --port <port>', 'The port you want to start unleash on')
|
||||
.option('-d, --databaseUri <databaseUri>', 'The full databaseUri to connect to, including username and password')
|
||||
.parse(process.argv);
|
||||
|
@ -25,7 +25,7 @@
|
||||
},
|
||||
"main": "./server.js",
|
||||
"bin": {
|
||||
"unleash": "./unleash.js"
|
||||
"unleash": "./bin/unleash.js"
|
||||
},
|
||||
"scripts": {
|
||||
"db-migrate-and-start": "npm run db-migrate && npm run start",
|
||||
|
Loading…
Reference in New Issue
Block a user