From 7c1a8f6a2c842139f0568df00581e7598191ddf9 Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Fri, 31 Oct 2014 08:27:50 -0500 Subject: [PATCH] Show alert if not configured --- app.rb | 1 + views/index.haml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app.rb b/app.rb index eca33fd..332bd45 100644 --- a/app.rb +++ b/app.rb @@ -21,6 +21,7 @@ set :session_secret, config['cookie_secret'] get '/' do + @configured = config['client_id'] != 'your-do-client-id' haml :index end diff --git a/views/index.haml b/views/index.haml index b4ec739..e7890bb 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,3 +1,8 @@ +- unless @configured + .alert.alert-danger + %strong This app has not been configured! + You need to edit the config.yml file before using this tool. + %p This is an experimental installer for getting apps running quickly on DigitalOcean.