Skip to content

Commit 94e5338

Browse files
committed
Add Heroku deploy button and update instructions.
1 parent f86aecd commit 94e5338

File tree

3 files changed

+45
-30
lines changed

3 files changed

+45
-30
lines changed

README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
newrelic-ruby-kata
22
==================
33

4-
Using New Relic and Heroku see how many things you can find and fix to make this app perform fast!
4+
Using New Relic and Heroku, see how many things you can find and fix to make this app perform fast!
55

66
Step 1
77
-------
8-
Get the code. The code is waiting to be forked on [github](https://github.com/newrelic/newrelic-ruby-kata)
8+
Get the code. The code is waiting to be forked on [Github](https://github.com/newrelic/newrelic-ruby-kata)
99

10+
Step 2
11+
-------
1012
Load the sample DB locally:
1113

1214
rake db:create
13-
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump`
15+
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump
1416

15-
Step 2
17+
Step 3
1618
-------
17-
Deploy your app to Heroku and load the database there
19+
Deploy your app to Heroku, and load the database:
1820

19-
heroku apps:create
20-
heroku addons:add pgbackups:plus newrelic:stark memcachier
21-
heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'
21+
First,
2222

23+
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
2324

24-
Step 3
25+
Then, you can load the sample data via:
26+
27+
heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'
28+
29+
Step 4
2530
-------
2631
You can watch a [video on getting started](http://newrelic.com/resources/training) with the New Relic agent to help get you started. The New Relic agent will help you find and solve the performance issues in this application as well as help you see the complete impact of your changes.
2732

28-
Step 4
33+
Step 5
2934
-------
3035
Fix the code / Solve as many of the Katas as you can. There are seven distinct Katas in this application that can be torn apart and fixed by using your awesome dev abilities and the deep metrics that New Relic provides.
3136

32-
Step 5
37+
Step 6
3338
-------
3439
Let us know how you did, what you liked or disliked, what helped you find problems or what were the challenges, what you like about New Relic and what you don't - we just want to hear from you and see what we can do to get better. We'll even send you something for demonstrating your geek super powers when you complete the Kata - just provide us with your [thoughts and a link to your forked repo](https://support.newrelic.com/home).

app.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "New Relic Ruby Kata",
3+
"description": "Using New Relic and Heroku, see how many things you can find and fix to make this app perform fast!",
4+
"repository": "https://github.com/newrelic/newrelic-ruby-kata",
5+
"website": "http://newrelic-ruby-kata.herokuapp.com/",
6+
"logo": "http://storefront.nr-assets.net/assets/newrelic/source/NewRelic-logo-square.png",
7+
"success_url": "/",
8+
"addons": [
9+
"pgbackups:plus",
10+
"newrelic:stark",
11+
"memcachier"
12+
],
13+
"keywords": [
14+
"new relic",
15+
"rails",
16+
"kata"
17+
]
18+
}

app/views/home/index.html.erb

+11-19
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,31 @@
1818
<div class="row">
1919
<div class="span4">
2020
<h2>Step 1</h2>
21-
<p>Get the code. Using your <a href="http://github.com">github</a> account, fork
21+
<p>Get the code. Using your <a href="http://github.com">Github</a> account, fork
2222
the <a href="https://github.com/newrelic/newrelic-ruby-kata">newrelic/newrelic-ruby-kata</a> repo
2323
and then clone it onto your machine.</p>
2424
<p><a class="btn" href="https://github.com/newrelic/newrelic-ruby-kata/">Fork &amp; Clone! &raquo;</a></p>
2525
</div>
2626
<div class="span4">
2727
<h2>Step 2</h2>
28-
<p>Create a Heroku app. Using your <a href="http://heroku.com">heroku</a> account, create
29-
a new app and then push the kata code to it.
30-
(Use the <a href="https://toolbelt.heroku.com/">Heroku toolbelt</a>.)</p>
31-
<pre>heroku apps:create
32-
git push heroku master</pre>
33-
<p><a class="btn" href="http://heroku.com">Create &amp; Push! &raquo;</a></p>
28+
<p>Load the sample DB locally:</p>
29+
<pre>rake db:create
30+
31+
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump</pre>
32+
</code>
3433
</div>
3534
<div class="span4">
3635
<h2>Step 3</h2>
37-
<p>Add New Relic to your Heroku app.
38-
The New Relic agent will help you find and solve the performance issues in this
39-
application as well as help you see the complete impact of your changes.
40-
</p>
41-
<pre>heroku addons:add newrelic:stark
42-
heroku config:set NEW_RELIC_APP_NAME="YOUR APP NAME GOES HERE"</pre>
36+
<p>Deploy your app to Heroku, and load the database:
37+
<p>Look for the purple 'Deploy to Heroku' button on your Github fork's README.</p>
38+
<p>Then, you can load the sample data via:</p>
39+
<pre>heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'</pre>
4340
</div>
4441
</div>
4542
<div class="row">
4643
<div class="span4">
4744
<h2>Step 4</h2>
48-
<p>Populate the sample database and setup memcache.</p>
49-
<pre>heroku addons:add heroku-postgresql:dev
50-
heroku addons:add pgbackups:plus
51-
heroku addons:add memcachier
52-
53-
heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'</pre>
45+
<p>You can watch a <a href="http://newrelic.com/resources/training">video on getting started</a> with the New Relic agent to help get you started. The New Relic agent will help you find and solve the performance issues in this application as well as help you see the complete impact of your changes.
5446
</div>
5547
<div class="span4">
5648
<h2>Step 5</h2>

0 commit comments

Comments
 (0)