Skip to content

cmmakerclub/cmmc-dsc1

Repository files navigation

Configuration

$ firebase login
$ firebase functions:config:set user.line.channel-access-token="xxxx"
$ firebase functions:config:set user.line.channel-secret="xxxxxx"
$ firebase functions:config:set user.iot.http.endpoint="xxxxxx"
$ firebase functions:config:get
# pps-arrow-bot
$ firebase functions:config:set pps-arrow-bot.line.channel-access-token="xxxx"
$ firebase functions:config:set pps-arrow-bot.line.channel-channel-secret="xxxx"

Code

  const functions = require("firebase-functions");
  functions.config().user.iot.http.endpoint;

Deploying

$ firebase deploy

Project

cmmc-dsc1