Skip to content

Commit 5fae5a7

Browse files
Heroku post install instructions
1 parent 1ecbd25 commit 5fae5a7

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"repository": "https://github.com/ably/tutorials/tree/queue-wolfram-alpha-nodejs",
55
"logo": "https://files.ably.io/logo-70x70.png",
66
"keywords": ["Ably", "AMQP", "Wolfram Alpha", "realtime"],
7-
"success_url": "https://github.com/ably/tutorials/blob/queue-wolfram-alpha-nodejs/README.md#setting-up-the-demo-on-heroku",
7+
"success_url": "/post-install.html",
88
"addons": [
99
{
1010
"plan": "ably:test"

public/post-install.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<html>
2+
<head>
3+
<title>Ably Reactor Queue and Wolfram Alpha demo</title>
4+
<link rel="stylesheet" type="text/css" href="style.css">
5+
<script src="//code.jquery.com/jquery-3.1.1.min.js" crossorigin="anonymous"></script>
6+
</head>
7+
<body>
8+
<h1>Finalizing the setup of this demo</h1>
9+
10+
<p>Great, the app is now installed! However we need to you to follow few quick steps to get this demo running:</p>
11+
12+
<ul>
13+
<li><a href="http://developer.wolframalpha.com/">Sign up for a free Developer AppId with Wolfram Alpha</a></li>
14+
<li>Configure an environment variable with the Wolfram AppId (replace <code>[your wolfram app id]</code> with the AppId from the previous step): <code>heroku config:set WOLFRAM_APP_ID=[your wolfram app id] --app <span class="appid">[heroku app name you assigned for this demo]</span></code></li>
15+
<li>Log in to your <a href="https://support.ably.io/support/solutions/articles/3000052373-how-do-i-access-my-app-dashboard-if-i-am-a-heroku-add-on-user-">Ably dashboard</a>: <code>heroku addons:open ably --app <span class="appid">[heroku app name you assigned for this demo]</span></code></li>
16+
<li>Set up a queue (in the Queues tab) with the name <code>default</code> in the <code>US East (Virgina)</code> area.</li>
17+
<li>Set up a queue rule (button to add rules is further down the page within the Queues tab) with the following:
18+
19+
<ul>
20+
<li>Queue - choose the <code>default</code> queue you just set up</li>
21+
<li>Source - choose "Message"</li>
22+
<li>Channel Filter - enter <code>"^wolfram:questions"</code> to ensure that all questions published to the <code>wolfram:questions</code> channel are published into the <code>default</code> queue</li>
23+
</ul>
24+
</li>
25+
</ul>
26+
27+
<p>All done!</p>
28+
29+
<p>
30+
<b><a href="/">View the Reactor Queue and Wolphram Alpha Demo &raquo;</a></b>
31+
</p>
32+
</body>
33+
34+
<script type="text/javascript">
35+
var domain = window.location.host.split(':')[0];
36+
if (domain.match(/\.herokuapp\.com$/)) {
37+
$('.appid').text(domain.replace(/\.herokuapp\.com$/, ''));
38+
}
39+
</script>
40+
</html>

0 commit comments

Comments
 (0)