-
- Run up ngrok at port 5487:
~/Adapto-Bot$ ./ngrok http -host-header="localhost" 5487
- set up
.env
:
MICROSOFT_APP_ID={{YOUR_BOT_ID}} MICROSOFT_APP_PASSWORD={{YOUR_BOT_PASSWORD}} # HOST should be root path given by ngrok without suffix /api/messages HOST=https://090e6077b645.ngrok.io
- Run
~/Adapto-Bot$ npm i ~/Adapto-Bot$ npm run dev
- After run up, your bot is listening at
https://090e6077b645.ngrok.io/api/messages
-
- Run
~/Adapto-Bot$ npm run build
- Prepare docker image (Dockerfile is at root path) and push built image. You may create an executable shell script:
HOST="{{DOCKER REGISTRY HOST}}" IMG_TAG="adapto-v4-bot:latest" USER="{{DOCKER REGISTRY USERNAME}}" PASS="{{DOCKER REGISTRY PASSWORD}}" npm run build docker build -t $IMG_TAG . docker login $HOST -u $USER -p $PASS docker tag $IMG_TAG $HOST/$USER/$IMG_TAG docker push $HOST/$USER/$IMG_TAG
forked from robin-liao/Adapto-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
arun2k17/Adapto-Bot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 90.6%
- HTML 7.5%
- JavaScript 1.7%
- Dockerfile 0.2%