- when building for release, embed the static files in binary

This commit is contained in:
Alex Ling
2020-02-15 23:29:11 +00:00
parent 0c177c3d31
commit 21fcde944d
6 changed files with 47 additions and 11 deletions

View File

@@ -23,3 +23,12 @@ end
def hash_to_query(hash)
hash.map { |k, v| "#{k}=#{v}" }.join("&")
end
def request_path_startswith(env, ary)
ary.each do |prefix|
if env.request.path.starts_with? prefix
return true
end
end
return false
end