Commit 33ca83c6954718b51b48d8f00eaef325c0e3ab2d
1 parent
545cfde5
Exists in
master
and in
1 other branch
Update configuration instructions
Showing
2 changed files
with
20 additions
and
9 deletions
Show diff stats
app/views/apps/_configuration_instructions.html.haml
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | :preserve |
4 | 4 | |
5 | 5 | # Require the hoptoad_notifier gem in you App. |
6 | + # -------------------------------------------- | |
6 | 7 | # |
7 | 8 | # Rails 3 - In your Gemfile |
8 | 9 | # gem 'hoptoad_notifier' |
... | ... | @@ -10,12 +11,22 @@ |
10 | 11 | # Rails 2 - In environment.rb |
11 | 12 | # config.gem 'hoptoad_notifier' |
12 | 13 | # |
13 | - # Then add the following to config/initializers/hoptoad.rb | |
14 | + # Then add the following to config/initializers/errbit.rb | |
15 | + # ------------------------------------------------------- | |
14 | 16 | HoptoadNotifier.configure do |config| |
15 | 17 | config.api_key = '#{app.api_key}' |
16 | 18 | config.host = '#{request.host}' |
17 | - config.port = #{request.port} | |
18 | - # Note: Deployment notifications only work on port 80 | |
19 | + config.port = #{request.port} # Note: Deployment notifications only work on port 80 | |
19 | 20 | end |
21 | + # | |
22 | + # Testing | |
23 | + # ------- | |
24 | + # | |
25 | + # Rails 2 - you'll need to vendor hoptoad_notifier to get the rake tasks | |
26 | + # rake gems:unpack GEM=hoptoad_notifier | |
27 | + # | |
28 | + # Run: | |
29 | + # rake hoptoad:test | |
30 | + # refresh this page | |
20 | 31 | |
21 | 32 | |
22 | 33 | \ No newline at end of file | ... | ... |
app/views/apps/show.html.haml
... | ... | @@ -8,10 +8,6 @@ |
8 | 8 | - if current_user.admin? |
9 | 9 | = link_to 'edit', edit_app_path(@app), :class => 'button' |
10 | 10 | = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?', :class => 'button' |
11 | - | |
12 | -- if @app.errs.none? | |
13 | - %h3 Setup your app | |
14 | - = render 'configuration_instructions', :app => @app | |
15 | 11 | |
16 | 12 | %h3 Watchers |
17 | 13 | %table.watchers |
... | ... | @@ -27,5 +23,9 @@ |
27 | 23 | %td |
28 | 24 | %em Sadly, no one is watching this app |
29 | 25 | |
30 | -%h3 Errs | |
31 | -= render 'errs/table', :errs => @errs | |
32 | 26 | \ No newline at end of file |
27 | +- if @app.errs.any? | |
28 | + %h3 Errs | |
29 | + = render 'errs/table', :errs => @errs | |
30 | +- else | |
31 | + %h3 No errs have been caught yet, make sure you setup your app | |
32 | + = render 'configuration_instructions', :app => @app | |
33 | 33 | \ No newline at end of file | ... | ... |