Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Show alert if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Oct 31, 2014
1 parent 604f6ac commit 7c1a8f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
set :session_secret, config['cookie_secret']

get '/' do
@configured = config['client_id'] != 'your-do-client-id'
haml :index
end

Expand Down
5 changes: 5 additions & 0 deletions views/index.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- unless @configured
.alert.alert-danger
%strong This app has not been configured!
You need to edit the <code>config.yml</code> file before using this tool.

%p
This is an <strong>experimental</strong> installer for getting apps running quickly on
<a href="#{SIGN_UP_URL}">DigitalOcean</a>.
Expand Down

0 comments on commit 7c1a8f6

Please sign in to comment.