From 16eb842915ae34399aca808eb11baa9d73c8ac99 Mon Sep 17 00:00:00 2001 From: "Zhuohuan LI (CARPE DIEM)" Date: Tue, 1 Nov 2016 04:36:19 +0000 Subject: [PATCH] link wechaty module for /bot inside docker #66 --- bin/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 21f66d0b..8a6254b6 100755 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -38,10 +38,15 @@ if [[ "$1" == *.ts || "$1" == *.js ]]; then if [ -f "$botFilePath" ]; then cd /bot && pwd + [ -f package.json ] && { echo "Install dependencies modules ..." yarn } + + echo "Linking Wechaty Module ... " + npm link + echo "Executing ts-node $botFilePath $@" ts-node "$botFilePath" $@ ret=$? -- GitLab