mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
disable logging by default
This commit is contained in:
parent
a80fcfc8f7
commit
71574065fe
1 changed files with 2 additions and 1 deletions
|
@ -4,12 +4,13 @@ require "./ledger"
|
||||||
|
|
||||||
ENV["CREDGER_CURRENCY"] ||= "€"
|
ENV["CREDGER_CURRENCY"] ||= "€"
|
||||||
ENV["CREDGER_SEPARATOR"] ||= ","
|
ENV["CREDGER_SEPARATOR"] ||= ","
|
||||||
|
|
||||||
ENV["CREDGER_PORT"] ||= "3000"
|
ENV["CREDGER_PORT"] ||= "3000"
|
||||||
|
ENV["CREDGER_VERBOSE"] ||= "false"
|
||||||
|
|
||||||
WD = File.dirname( Process.executable_path.to_s )
|
WD = File.dirname( Process.executable_path.to_s )
|
||||||
|
|
||||||
public_folder( "#{WD}/public" )
|
public_folder( "#{WD}/public" )
|
||||||
|
logging ENV["CREDGER_VERBOSE"] == "true"
|
||||||
|
|
||||||
# Matches GET "http://host:port/"
|
# Matches GET "http://host:port/"
|
||||||
get "/" do |env|
|
get "/" do |env|
|
||||||
|
|
Loading…
Reference in a new issue