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

Commit 7c1a8f6

Browse files
committed
Show alert if not configured
1 parent 604f6ac commit 7c1a8f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app.rb

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
set :session_secret, config['cookie_secret']
2222

2323
get '/' do
24+
@configured = config['client_id'] != 'your-do-client-id'
2425
haml :index
2526
end
2627

views/index.haml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- unless @configured
2+
.alert.alert-danger
3+
%strong This app has not been configured!
4+
You need to edit the <code>config.yml</code> file before using this tool.
5+
16
%p
27
This is an <strong>experimental</strong> installer for getting apps running quickly on
38
<a href="#{SIGN_UP_URL}">DigitalOcean</a>.

0 commit comments

Comments
 (0)