Closed reinvantveer closed 6 years ago
Can you reformat your issue? It's hard to read + understand.
Histograph-viewer seems to append an extra '/' when used with the --config CLI option.
To reproduce:
npm start
instruction from docsreinv@lingui:~/data/Github/histograph/histograph-viewer$ npm start
> histograph-viewer@0.5.0 start /var/data/Github/histograph/histograph-viewer
> NODE_ENV=development node viewer-config.js > config.json && watchify -d -t reactify src/index.js -o dist/bundle.js & serve
Please specify location of your user configuration in environment variable `HISTOGRAPH_CONFIG`, or use the `--config` command line option
serving /var/data/Github/histograph/histograph-viewer on port 3000
Pressed ^C
Please specify location of your user configuration in environment variable
HISTOGRAPH_CONFIG, or use the
--configcommand line option
option as --config
parameterreinv@lingui:~/data/Github/histograph/histograph-viewer$ npm start --config $PWD/../config/config.yml
> histograph-viewer@0.5.0 start /var/data/Github/histograph/histograph-viewer
> NODE_ENV=development node viewer-config.js > config.json && watchify -d -t reactify src/index.js -o dist/bundle.js & serve "/home/reinv/data/Github/histograph/histograph-viewer/../config/config.yml"
Please specify location of your user configuration in environment variable `HISTOGRAPH_CONFIG`, or use the `--config` command line option
serving /home/reinv/data/Github/histograph/config/config.yml on port 3000
Error: ENOTDIR: not a directory, stat '/home/reinv/data/Github/histograph/config/config.yml/'
at Error (native)
Sorry was a bit quick I suppose with the previous comment :)
Oh, yeah... You cannot pass the --config
option with npm start
...
"Please specify location of your user configuration..." is output from viewer-config.js
, you should add the --config
option to the scripts
section in package.json
, or just set the environment variable!
This is confusing, I agree... We should update README.
Updated readme
reinv@lingui:~/data/Github/histograph/histograph-viewer$ npm start
Please specify location of your user configuration in environment variable
HISTOGRAPH_CONFIG
, or use the--config
command line option serving /var/data/Github/histograph/histograph-viewer on port 3000 ^Creinv@lingui:~/data/Github/histograph/histograph-viewer$ npm start --config $PWD/../config/config.yml
Please specify location of your user configuration in environment variable
HISTOGRAPH_CONFIG
, or use the--config
command line option serving /home/reinv/data/Github/histograph/config/config.yml on port 3000 Error: ENOTDIR: not a directory, stat '/home/reinv/data/Github/histograph/config/config.yml/' at Error (native)