Skip to content

Commit

Permalink
Removed test function; added redirect to switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
kripy committed Aug 21, 2013
1 parent d28a213 commit 63fd32d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ As the documentation [states](https://devcenter.heroku.com/articles/platform-api

To get your Heroku API token, run ```heroku auth:token```. Your email address is the email address you used to register with Heroku.

To generate the API key run ```echo email address : auth token | base64``` from the command line. Note the space either side of the colon. They is NOT generated correctly without it. Took me a while to figure that one out.
To generate the API key run ```echo email address : auth token | base64``` from the command line. Note the space either side of the colon. The key is NOT generated correctly without it. Took me a while to figure that one out.

Now, create an ```.env``` file in the root directory of the project. The file should look like this:

Expand All @@ -65,7 +65,6 @@ As you've already create the app on Heroku, commit your updated code and push:
```
$ git add .
$ git commit -m "Deploy time."
$ heroku create
$ git push heroku master
```

Expand Down
9 changes: 1 addition & 8 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ def get_answer()
puts response
end

mustache :index
redirect '/'
end

get "/try" do
answer = get_answer()
answer = answer["YSN_ANSWER"]
puts answer

end
end

0 comments on commit 63fd32d

Please sign in to comment.