You can skip this part if you prefer to use Google Cloud Shell instead
- Follow instruction here
- If you have installed the Google Cloud SDK on your machine, run the command
gcloud auth application-default login
cd myapp/
cp .local-example.yaml local.yaml
cp .cloud-example.yaml cloud.yaml
- Specify your
service
name in both yaml files - Update your
CHANNEL_SECRET
andCHANNEL_TOKEN
from the line developer area Messaging API
- Install via Homebrew or Download and install mysql community server here
- Import the SQL Schema from assets/init.sql
Install ngrok
- Config SQL parameters in local.yaml if needed (Default host: 127.0.0.1, port: 3306)
- Start an ngrok tunnel, run
ngrok http 127.0.0.1:8888
- start the bot
- Make sure you've installed and started mysql server on your local machine
- Run
dev_appserver.py local.yaml --port 8888
- Config SQL parameters in cloud.yaml (Please ask Boss for Google SQL parameters)
- Run
gcloud app deploy cloud.yaml --version YOUR-VERSION