Skip to content

Commit

Permalink
[deploy.sh] node-gyp rebuild
Browse files Browse the repository at this point in the history
From nodejs/node-gyp README:
- `rebuild`  Runs `clean`, `configure` and `build` all in a row
- `clean`    Removes the `build` directory if it exists

This ensures `npm run deploy` succeeds if it is run a second time.
`npm run deploy` needs to be re-run if the deploy options change.
  • Loading branch information
moriarty committed Sep 10, 2020
1 parent 03fe718 commit 9a649a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,7 @@ fi
make -j 8

cd ../gzbridge
if [ -d "./build" ]; then
# node-gym configure will fail if build already exists
rm -rf ./build
fi
$DIR/node_modules/.bin/node-gyp configure
$DIR/node_modules/.bin/node-gyp build -d
$DIR/node_modules/.bin/node-gyp rebuild -d

RETVAL=$?
if [ $RETVAL -ne 0 ]; then
Expand Down

0 comments on commit 9a649a0

Please sign in to comment.