Skip to content

Commit 305d43c

Browse files
committed
Heroku no longer provide free-plan. We'll remove the Heroku specific
docs.
1 parent 63bb28f commit 305d43c

File tree

1 file changed

+2
-48
lines changed

1 file changed

+2
-48
lines changed

examples/echo-bot-ts/README.md

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ An example LINE bot to echo message with TypeScript. The bot is coded according
66

77
- Git
88
- Node.js version 10 and up
9-
- Heroku CLI (optional)
109
- LINE Developers Account for the bot
1110

1211
## Installation
@@ -29,15 +28,15 @@ cd line-bot-sdk-nodejs/examples/echo-bot-ts
2928
npm install
3029
```
3130

32-
- Configure all of the environment variables.
31+
- Configure all the environment variables.
3332

3433
```bash
3534
export CHANNEL_ACCESS_TOKEN=<YOUR_CHANNEL_ACCESS_TOKEN>
3635
export CHANNEL_SECRET=<YOUR_CHANNEL_SECRET>
3736
export PORT=<YOUR_PORT>
3837
```
3938

40-
- Setup your webhook URL in your LINE Official Account to be in the following format. Don't forget to disable the greeting messages and auto-response messages for convenience.
39+
- Set up your webhook URL in your LINE Official Account to be in the following format. Don't forget to disable the greeting messages and auto-response messages for convenience.
4140

4241
```bash
4342
https://example-url.com/webhook
@@ -55,48 +54,3 @@ npm run build
5554
npm start
5655
```
5756

58-
## Alternative Installation
59-
60-
If you want to deploy it via Heroku, it is also possible and is even easier for testing purposes.
61-
62-
- Clone the repository.
63-
64-
```bash
65-
git clone https://github.com/line/line-bot-sdk-nodejs.git
66-
```
67-
68-
- Change directory to the example.
69-
70-
```bash
71-
cd line-bot-sdk-nodejs/examples/echo-bot-ts
72-
```
73-
74-
- Create a Heroku application.
75-
76-
```bash
77-
git init
78-
heroku create <YOUR_APP_NAME> # Do not specify for a random name
79-
```
80-
81-
- Setup the environment variables, and don't forget to setup your webhook URL (from the Heroku application that you have just created) in your LINE Offical Account. The webhook URL will still accept the following format: `https://example-url.com.herokuapp.com/webhook`.
82-
83-
```bash
84-
heroku config:set CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
85-
heroku config:set CHANNEL_SECRET=YOUR_CHANNEL_SECRET
86-
```
87-
88-
- Push the application to the server.
89-
90-
```bash
91-
git add .
92-
git commit -m "Initial commit for Heroku testing"
93-
git push heroku master
94-
```
95-
96-
- Open your application.
97-
98-
```bash
99-
heroku open
100-
```
101-
102-
- Done!

0 commit comments

Comments
 (0)