mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
configurable PORT $(PRT=9292 ./credger)
This commit is contained in:
parent
9135d13f2b
commit
8b40bc6db3
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ require "./ledger"
|
|||
CURRENCY = "€"
|
||||
SEPARATOR = ","
|
||||
|
||||
ENV["PORT"] ||= "3000"
|
||||
|
||||
ledger = Ledger.new
|
||||
|
||||
# Matches GET "http://host:port/"
|
||||
|
@ -53,4 +55,4 @@ get "/api/ledger/register" do |env|
|
|||
.to_json
|
||||
end
|
||||
|
||||
Kemal.run
|
||||
Kemal.run( ENV["PORT"].to_i )
|
||||
|
|
Loading…
Reference in a new issue