1
0
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:
Ivar 2016-09-29 22:50:55 +02:00
parent 100e99db7e
commit c00cf70cf1
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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",