Update locally

April 14, 2019 ยท View on GitHub

The purpose of this repository is to update a file in my GitHub account based on a git push.

It was also an interesting way to learn more about GitHub webhooks.

Update locally

sls invoke local -s prod -r ap-southeast-1 --function forceUpdate --data '{"owner":"aizatto","repo":"gitbook-public"}'

Update remotely

aws lambda invoke --function-name gitbook-summary-prod-forceUpdate --payload '{"owner":"aizatto","repo":"gitbook-public"}' /dev/stdout

Deploy

sls deploy -s prod -r ap-southeast-1