Skip to content

Commit

Permalink
docs: Add deploy to netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Mar 21, 2020
1 parent 64b6f04 commit be64c1f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
- [Run gorush in AWS Lambda](#run-gorush-in-aws-lambda)
- [Build gorush binary](#build-gorush-binary)
- [Deploy gorush application](#deploy-gorush-application)
- [Without an AWS account](#without-an-aws-account)
- [Stargazers over time](#stargazers-over-time)
- [License](#license)

Expand All @@ -64,6 +65,8 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
- [APNS](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html)
- [FCM](https://firebase.google.com/)

[A live demo on Netlify](https://gorush.netlify.com/).

## Features

- Support [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging) using [go-fcm](https://github.com/appleboy/go-fcm) library for Android.
Expand Down Expand Up @@ -1131,6 +1134,25 @@ $ AWS_ACCESS_KEY_ID=YOUR_AWS_ACCESS_KEY_ID \
--source release/linux/lambda/gorush
```

### Without an AWS account

Or you can deploy gorush to alternative solution like [netlify functions](https://docs.netlify.com/functions/overview/). [Netlify](https://www.netlify.com/) lets you deploy serverless Lambda functions without an AWS account, and with function management handled directly within Netlify. Please see the netlify.toml file:

```toml
[build]
command = "./build.sh"
functions = "release/linux/lambda"

[build.environment]
GO_IMPORT_PATH = "github.com/appleboy/gorush"
GO111MODULE = "on"

[[redirects]]
from = "/*"
to = "/.netlify/functions/gorush/:splat"
status = 200
```

## Stargazers over time

[![Stargazers over time](https://starcharts.herokuapp.com/appleboy/gorush.svg)](https://starcharts.herokuapp.com/appleboy/gorush)
Expand Down

0 comments on commit be64c1f

Please sign in to comment.