560 B
560 B
Local testing
- Change hook.go package to main
mv ../main.go .
go run main.go hook.go
Deploy local
gcloud functions deploy webhook --runtime go111 --entry-point Authorization --trigger-http --project shuffler --memory=128 --set-env-vars=FUNCTION_APIKEY=asdasd,CALLBACKURL=shuffler.io,HOOKID=test123
Build and deploy from gui
- rm webhook.zip
- zip webhook.zip hook.go
- Upload to bucket https://console.cloud.google.com/storage/browser/shuffler.appspot.com?project=shuffler
- Restart hook(s) (https://shuffler.io/webhooks)