|
18 | 18 | <div class="row">
|
19 | 19 | <div class="span4">
|
20 | 20 | <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 |
22 | 22 | the <a href="https://github.com/newrelic/newrelic-ruby-kata">newrelic/newrelic-ruby-kata</a> repo
|
23 | 23 | and then clone it onto your machine.</p>
|
24 | 24 | <p><a class="btn" href="https://github.com/newrelic/newrelic-ruby-kata/">Fork & Clone! »</a></p>
|
25 | 25 | </div>
|
26 | 26 | <div class="span4">
|
27 | 27 | <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 & Push! »</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> |
34 | 33 | </div>
|
35 | 34 | <div class="span4">
|
36 | 35 | <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> |
43 | 40 | </div>
|
44 | 41 | </div>
|
45 | 42 | <div class="row">
|
46 | 43 | <div class="span4">
|
47 | 44 | <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. |
54 | 46 | </div>
|
55 | 47 | <div class="span4">
|
56 | 48 | <h2>Step 5</h2>
|
|
0 commit comments