Add base path env

This commit is contained in:
2019-11-09 19:27:30 +03:00
parent 988d4b24b4
commit 4f727d10d3
3 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,9 @@ require "kemal"
require "./dayoff/**"
require "./handlers"
base_path = "./tmp"
base_path = ENV["BASE_PATH"]
puts "Set storage base path: " + base_path
app = Dayoff::App.new base_path