diff --git a/README.md b/README.md index c5fd18d..469c6ea 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,39 @@ newrelic-ruby-kata ================== -Using New Relic and Heroku see how many things you can find and fix to make this app perform fast! +Using New Relic and Heroku, see how many things you can find and fix to make this app perform fast! Step 1 ------- -Get the code. The code is waiting to be forked on [github](https://github.com/newrelic/newrelic-ruby-kata) +Get the code. The code is waiting to be forked on [Github](https://github.com/newrelic/newrelic-ruby-kata) +Step 2 +------- Load the sample DB locally: rake db:create - pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump` + pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump -Step 2 +Step 3 ------- -Deploy your app to Heroku and load the database there +Deploy your app to Heroku, and load the database: - heroku apps:create - heroku addons:add pgbackups:plus newrelic:stark memcachier - heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump' +First, +[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) -Step 3 +Then, you can load the sample data via: + + heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump' + +Step 4 ------- 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. -Step 4 +Step 5 ------- 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. -Step 5 +Step 6 ------- 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). diff --git a/app.json b/app.json new file mode 100644 index 0000000..a036de0 --- /dev/null +++ b/app.json @@ -0,0 +1,18 @@ +{ + "name": "New Relic Ruby Kata", + "description": "Using New Relic and Heroku, see how many things you can find and fix to make this app perform fast!", + "repository": "https://github.com/newrelic/newrelic-ruby-kata", + "website": "http://newrelic-ruby-kata.herokuapp.com/", + "logo": "http://storefront.nr-assets.net/assets/newrelic/source/NewRelic-logo-square.png", + "success_url": "/", + "addons": [ + "pgbackups:plus", + "newrelic:stark", + "memcachier" + ], + "keywords": [ + "new relic", + "rails", + "kata" + ] +} \ No newline at end of file diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index d6d3bde..394c853 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -18,39 +18,31 @@
Get the code. Using your github account, fork +
Get the code. Using your Github account, fork the newrelic/newrelic-ruby-kata repo and then clone it onto your machine.
Create a Heroku app. Using your heroku account, create - a new app and then push the kata code to it. - (Use the Heroku toolbelt.)
-heroku apps:create -git push heroku master- +
Load the sample DB locally:
+rake db:create + +pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $USER -d newrelic-ruby-kata_development public/sample-data.dump+
Add New Relic to your Heroku app. - 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. -
-heroku addons:add newrelic:stark -heroku config:set NEW_RELIC_APP_NAME="YOUR APP NAME GOES HERE"+
Deploy your app to Heroku, and load the database: +
Look for the purple 'Deploy to Heroku' button on your Github fork's README.
+Then, you can load the sample data via:
+heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'
Populate the sample database and setup memcache.
-heroku addons:add heroku-postgresql:dev -heroku addons:add pgbackups:plus -heroku addons:add memcachier - -heroku pgbackups:restore DATABASE 'http://newrelic-ruby-kata.herokuapp.com/sample-data.dump'+
You can watch a video on getting started 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.