Commit 6004416e authored by Terence Lee's avatar Terence Lee

Merge pull request #9 from ojacobson/static.json-is-optional

Restore optional nature of static.json.
parents d31b3974 89bbc4b9
...@@ -3,7 +3,8 @@ eval(File.read('/app/bin/config/lib/nginx_config_util.rb')) ...@@ -3,7 +3,8 @@ eval(File.read('/app/bin/config/lib/nginx_config_util.rb'))
USER_CONFIG = "/app/static.json" USER_CONFIG = "/app/static.json"
config = JSON.parse(File.read(USER_CONFIG)) config = {}
config = JSON.parse(File.read(USER_CONFIG)) if File.exist?(json_file)
req = Nginx::Request.new req = Nginx::Request.new
uri = req.var.uri uri = req.var.uri
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment