A webhook used as Line bot(@zpe1163t), deployed on google cloud functions
$ cp ./envs/sample.env.yml ./envs/prod.env.yml
add enviroment variables here in ./envs/prod.env.yml
$ sh ./deploy.sh
in deploy.sh
, we run
$ gcloud beta functions deploy lineBotWebhook --env-vars-file ./envs/prod.env.yml --trigger-http
- You have to setup gcloud CLI in advanced
- linebotwebhook is the function name export by
index.js
./envs/prod.env.yml
is the yaml file mentioned above