Don't run npm install on every hubot start

But link hubot-kredits in development
This commit is contained in:
Basti 2018-04-18 20:49:56 +02:00
parent e93671a740
commit 32c3ce7afe
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@
set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
exec node_modules/.bin/hubot --name "hal9000" "$@"

6
run.sh
View File

@ -1,5 +1,4 @@
rm -rf node_modules/hubot-plusplus
# npm install
npm link hubot-kredits
PORT=8888 \
HUBOT_LOG_LEVEL="debug" \
@ -21,6 +20,5 @@ KREDITS_WEBHOOK_TOKEN="123" \
KREDITS_ROOM="#kosmos-random" \
KREDITS_WALLET_PATH="wallet.json" \
KREDITS_WALLET_PASSWORD="foo" \
KREDITS_CONTRACT_ADDRESS="0x7dfab325c6ec203597c419b4b3172c6b219b9315" \
KREDITS_PROVIDER_URL="https://parity.kosmos.org:8545" \
KREDITS_PROVIDER_URL="http://localhost:7545" \
bin/hubot --name hal7000