Browse Source

Merge pull request #11 from pelias/remove-npm-usage

Avoid using NPM in scripts
debug-proxy
Julian Simioni 6 years ago committed by GitHub
parent
commit
f333e608e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/elastic.sh
  2. 4
      cmd/prepare.sh

2
cmd/elastic.sh

@ -2,7 +2,7 @@
set -e;
function elastic_schema_drop(){ compose_run 'schema' node scripts/drop_index "$@" || true; }
function elastic_schema_create(){ compose_run 'schema' npm run create_index; }
function elastic_schema_create(){ compose_run 'schema' node scripts/create_index; }
function elastic_start(){ compose_exec up -d elasticsearch; }
function elastic_stop(){ compose_exec kill elasticsearch; }

4
cmd/prepare.sh

@ -5,8 +5,8 @@ set -e;
function prepare_polylines(){ compose_run 'polylines' bash ./docker_extract.sh; }
function prepare_interpolation(){ compose_run 'interpolation' bash ./docker_build.sh; }
function prepare_placeholder(){
compose_run 'placeholder' npm run extract
compose_run 'placeholder' npm run build
compose_run 'placeholder' ./cmd/extract.sh;
compose_run 'placeholder' ./cmd/build.sh;
}
register 'prepare' 'polylines' 'export road network from openstreetmap into polylines format' prepare_polylines

Loading…
Cancel
Save