Skip to content

Commit da58f70

Browse files
authored
Merge pull request #24 from kkdai/support_render
Support render.com
2 parents 252e75e + 03dfd77 commit da58f70

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

README.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
LINE BotTemplate: A simple Golang LINE Bot Template for LINE Bot API
22
==============
33

4-
[![Join the chat at https://gitter.im/kkdai/LineBotTemplate](https://badges.gitter.im/kkdai/LineBotTemplate.svg)](https://gitter.im/kkdai/LineBotTemplate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5-
6-
[![GoDoc](https://godoc.org/github.com/kkdai/LineBotTemplate.svg?status.svg)](https://godoc.org/github.com/kkdai/LineBotTemplate)
7-
8-
![Go](https://github.com/kkdai/LineBotTemplate/workflows/Go/badge.svg)
9-
10-
[![goreportcard.com](https://goreportcard.com/badge/github.com/kkdai/LineBotTemplate)](https://goreportcard.com/report/github.com/kkdai/LineBotTemplate)
11-
4+
[![GoDoc](https://godoc.org/github.com/kkdai/LineBotTemplate.svg?status.svg)](https://godoc.org/github.com/kkdai/LineBotTemplate) ![Go](https://github.com/kkdai/LineBotTemplate/workflows/Go/badge.svg) [![goreportcard.com](https://goreportcard.com/badge/github.com/kkdai/LineBotTemplate)](https://goreportcard.com/report/github.com/kkdai/LineBotTemplate)
125

136
Installation and Usage
147
=============
@@ -23,31 +16,36 @@ Installation and Usage
2316
- Open LINE OA manager from "Basic Setting" tab.
2417
- Go to Reply setting on OA manager, enable "webhook"
2518

19+
### 2. Deploy this on Web Platform
2620

27-
### 2. Just Deploy this on Heroku
21+
You can choose [Heroku](https://www.heroku.com/) or [Render](http://render.com/)
22+
23+
#### 2(A) Deploy this on Heroku
2824

2925
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
3026

3127
- Input `Channel Secret` and `Channel Access Token`.
3228
- Remember your heroku, ID.
3329

30+
#### 2(B) Deploy this on Rener
31+
32+
[![Deploy to Render](http://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)
33+
3434
### 3. Go to LINE Bot Dashboard, setup basic API
3535

3636
- Setup your basic account information. Here is some info you will need to know.
37-
- `Callback URL`: https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback
37+
- `Callback URL`: <https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback>
3838

3939
It all done.
4040

41-
42-
### Video Tutorial:
41+
### Video Tutorial
4342

4443
- [How to deploy LINE BotTemplate](https://www.youtube.com/watch?v=0BIknEz1f8k)
4544
- [Hoe to modify your LINE BotTemplate code](https://www.youtube.com/watch?v=ckij73sIRik)
4645

46+
### Chinese Tutorial
4747

48-
### Chinese Tutorial:
49-
50-
如果你看得懂繁體中文,這裡有[中文的介紹](http://www.evanlin.com/create-your-line-bot-golang/)
48+
如果你看得懂繁體中文,這裡有[中文的介紹](http://www.evanlin.com/create-your-line-bot-golang/)
5149

5250
Inspired By
5351
=============
@@ -61,19 +59,17 @@ Project52
6159

6260
It is one of my [project 52](https://github.com/kkdai/project52).
6361

64-
6562
License
6663
---------------
6764

6865
Licensed under the Apache License, Version 2.0 (the "License");
6966
you may not use this file except in compliance with the License.
7067
You may obtain a copy of the License at
7168

72-
http://www.apache.org/licenses/LICENSE-2.0
69+
<http://www.apache.org/licenses/LICENSE-2.0>
7370

7471
Unless required by applicable law or agreed to in writing, software
7572
distributed under the License is distributed on an "AS IS" BASIS,
7673
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7774
See the License for the specific language governing permissions and
7875
limitations under the License.
79-

render.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
- type: web
3+
name: LineBotTemplate
4+
env: go
5+
buildCommand: go build -o app
6+
startCommand: ./app
7+
plan: free
8+
autoDeploy: false
9+
envVars:
10+
- key: ChannelAccessToken
11+
sync: false
12+
- key: ChannelSecret
13+
sync: false

0 commit comments

Comments
 (0)