Skip to content

Commit a31ad6b

Browse files
committed
Added Heroku CLI
1 parent cac59a9 commit a31ad6b

File tree

8 files changed

+72
-44
lines changed

8 files changed

+72
-44
lines changed
199 KB
Loading
File renamed without changes.
150 KB
Loading

docs/create/heroku/index-heroku.mdx

Lines changed: 66 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Please note that this method won't allow you to choose Redis Modules while creat
132132

133133
Under this section, we will be creating Heroku account, use Heroku CLI to login and add Redis Enterprise Cloud as an add-on.
134134

135-
### Step 1: Install Heroku on MacOS
135+
### Step 1: Install Heroku
136136

137137

138138
```bash
@@ -150,74 +150,102 @@ Assuming that you already have Heroku account created, run the below command to
150150
Logged in as your_email_address
151151
```
152152

153-
### Step 2: Installing Redis Enterprise Cloud Add-on
154153

155154

156-
Create a Heroku app
155+
### Step 2: Cloning the application
157156

158157
```bash
159-
heroku apps:create kickstartredis
160-
Creating ⬢ kickstartredis... done
161-
https://kickstartredis.herokuapp.com/ | https://git.heroku.com/kickstartredis.git
158+
$ git clone https://github.com/redis-developer/basic-redis-rate-limiting-demo-nodejs
162159
```
163160

164-
Ensure that you don’t have existing add-ons added in your account.
165161

162+
### Step 3. Create a heroku app
166163

167-
```bash
168-
$ heroku addons:create rediscloud -a kickstartredis
169-
Creating rediscloud on ⬢ kickstartredis... free
170-
Created rediscloud-cylindrical-24439 as REDISCLOUD_URL
171-
Use heroku addons:docs rediscloud to view documentation
164+
165+
```
166+
$ heroku create
167+
Creating app... done, ⬢ lit-island-48230
168+
https://lit-island-48230.herokuapp.com/ | https://git.heroku.com/lit-island-48230.git
172169
```
173170

174171

172+
### Step 4. Start by installing the add-on:
173+
174+
Ensure that you don’t have existing add-ons added in your account.
175+
176+
177+
```bash
178+
$ heroku addons:create rediscloud -a lit-island-48230
179+
Creating rediscloud on ⬢ lit-island-48230... free
180+
Created rediscloud-asymmetrical-85190 as REDISCLOUD_URL
181+
Use heroku addons:docs rediscloud to view documentation
182+
```
183+
184+
175185
Once Redis Cloud has been added, you will notice a REDISCLOUD_URL config vars in your heroku config containing the username, password, hostname and port of your first Redis Cloud database.
176186

177187

178-
```bash
179-
$ heroku config:get REDISCLOUD_URL -a kickstartredis
180-
redis://default:password@redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com:11324
181-
```
188+
```bash
189+
heroku config:get REDISCLOUD_URL -a lit-island-48230
190+
redis://default:ajSE7DuqhmGG7u2ZbSU0HTuEqTx1FuEQ@redis-17268.c256.us-east-1-2.ec2.cloud.redislabs.com:17268
191+
```
182192

183-
```bash
184-
$ heroku addons:info rediscloud
185-
=== rediscloud-cylindrical-24439
186-
Attachments: kickstartredis::REDISCLOUD
187-
Installed at: Fri Mar 19 2021 17:16:18 GMT+0530 (India Standard Time)
188-
Owning app: kickstartredis
189-
Plan: rediscloud:30
190-
Price: free
191-
State: created
193+
194+
```bash
195+
$ heroku addons:info rediscloud
196+
=== rediscloud-asymmetrical-85190
197+
Attachments: lit-island-48230::REDISCLOUD
198+
Installed at: Fri Mar 26 2021 07:52:43 GMT+0530 (India Standard Time)
199+
Owning app: lit-island-48230
200+
Plan: rediscloud:30
201+
Price: free
202+
State: created
192203
```
193204

194205

195206
```bash
196-
$ heroku config -a kickstartredis
197-
=== kickstartredis Config Vars
198-
REDISCLOUD_URL: redis://default:password@redis-15951.c232.us-east-1-2.ec2.cloud.redislabs.com:15951
207+
heroku config -a lit-island-48230
208+
=== lit-island-48230 Config Vars
209+
REDISCLOUD_URL: redis://default:ajSE7DuqhmGG7u2ZbSU0HTuEqTx1FuEQ@redis-17268.c256.us-east-1-2.ec2.cloud.redislabs.com:17268
199210
```
200211

201-
### Step 3: Accessing the database
202212

203213

214+
### Step 5. Accessing the Redis Enterprise Cloud dashboard
215+
216+
Go to Heroku and click on “Installed add-ons”
217+
218+
![heroku](heroku_addons.png)
219+
220+
Click on “Redis Enterprise Cloud” and it will be redirected over Redis Enterprise Cloud Dashboard
221+
222+
![heroku](heroku_rediscloud1.png)
223+
224+
225+
226+
### Step 6. Pushing the code to Heroku
227+
204228
```bash
205-
$ redis-cli -h redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com -p 11324
206-
redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com:11324> auth default showspassword
207-
OK
208-
redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com:11324>
229+
$ git push heroku
230+
231+
232+
remote: -----> Launching...
233+
remote: Released v8
234+
remote: https://lit-island-48230.herokuapp.com/ deployed to Heroku
235+
remote:
236+
remote: Verifying deploy... done.
237+
To https://git.heroku.com/lit-island-48230.git
238+
* [new branch] master -> master
209239
```
210240

211-
You can even browse it through Heroku Dashboard:
241+
### Step 7. Accessing the rate limiting application
212242

243+
Open https://lit-island-48230.herokuapp.com/ and access the rate limiting app.
213244

214-
![heroku](heroku_selectrecloud.png)
215245

216-
Click on “Redis Enterprise Cloud” and it will be redirected over Redis Enterprise Cloud Dashboard
217246

218-
![heroku](heroku_recloud.png)
247+
![heroku](heroku_ratelimiting1.png)
219248

220-
As shown above, a database called "redis-kickstartredis-XXX" gets created over Redis Enterprise Cloud dashboard.
221249

222250

223251

docs/howtos/herokujava/index-herokujava.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: index-herokujava
3-
title: How to build Java based application on Heroku using Redis
3+
title: Java based application on Heroku using Redis
44
sidebar_label: How to build Java based application on Heroku using Redis
55
slug: /howtos/herokujava
66
---

docs/howtos/herokunodejs/index-herokunodejs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: index-herokunodejs
3-
title: How to build NodeJS based application on Heroku using Redis
3+
title: Redis on Heroku using NodeJS
44
sidebar_label: How to build NodeJS based application on Heroku using Redis
55
slug: /howtos/herokunodejs
66
---

docs/howtos/herokupython/index-herokupython.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: index-herokupython
3-
title: How to build Python based application on Heroku using Redis
3+
title: Redis on Heroku using Python
44
sidebar_label: How to build Python based application on Heroku using Redis
55
slug: /howtos/herokupython
66
---

docs/howtos/index-howtos.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ This page holds a catalog with dozens of ready-to-use app listings from Redis La
108108

109109
<div class="col">
110110
<RedisCard
111-
title="Python based Rate Limiting application on Heroku using Redis"
111+
title="Redis on Heroku using Python"
112112
description="How to build Python based Rate Limiting application on Heroku using Redis"
113113
page="/howtos/herokupython"
114114
/>
@@ -117,7 +117,7 @@ This page holds a catalog with dozens of ready-to-use app listings from Redis La
117117

118118
<div class="col">
119119
<RedisCard
120-
title="NodeJS based Rate Limiting application on Heroku using Redis"
120+
title="NodeJS Heroku using Redis"
121121
description="How to build NodeJS based Rate Limiting application on Heroku using Redis"
122122
page="/howtos/herokunodejs"
123123
/>
@@ -126,7 +126,7 @@ This page holds a catalog with dozens of ready-to-use app listings from Redis La
126126

127127
<div class="col">
128128
<RedisCard
129-
title="Getting Started with Redis on Heroku using Java"
129+
title="Java on Heroku using Redis"
130130
description="How to build Java based application on Heroku using Redis"
131131
page="/howtos/herokujava"
132132
/>

0 commit comments

Comments
 (0)