From f4325c05838494504f5356f19cab685d0704dc8e Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 2 Feb 2022 15:53:24 +0100 Subject: [PATCH] Debug stuff --- src/app.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.rb b/src/app.rb index b560695..f71d574 100755 --- a/src/app.rb +++ b/src/app.rb @@ -1,7 +1,10 @@ #!/usr/bin/ruby -w require "sinatra" -require "sinatra/reloader" +if ARGV[0] == "debug" then + puts "Running app in debug mode..." + require "sinatra/reloader" +end require "slim" require "sqlite3"