Interactive interface for browsing global, full-resolution satellite imagery
bitly.json file now goes in an etc directory above the web root
Mike McGann6907617aa08c
diff --git a/Gruntfile.js b/Gruntfile.jsindex 9bdd4a50a..d5caaf9d6 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -208,6 +208,9 @@ module.exports = function(grunt) {expand: true, cwd: "build/options",src: ["**"],dest: "build/site-<%=grunt.option('packageName')%>-debug/web"+ },{+ src: "options/bitly.json",+ dest: "build/site-<%=grunt.option('packageName')%>-debug/etc/bitly.json"},{expand: true, cwd: "build/worldview",src: ["web/**", "web/**/.htaccess"],@@ -216,6 +219,9 @@ module.exports = function(grunt) {expand: true, cwd: "build/options",src: ["**"],dest: "build/site-<%=grunt.option('packageName')%>/web"+ },{+ src: "options/bitly.json",+ dest: "build/site-<%=grunt.option('packageName')%>/etc/bitly.json"}],options: {mode: truediff --git a/web/service/link/shorten.cgi b/web/service/link/shorten.cgiindex cee36490d..da626dc4e 100755--- a/web/service/link/shorten.cgi+++ b/web/service/link/shorten.cgi@@ -160,7 +160,7 @@ if __name__ == '__main__':"""options = parse_options()try:- key_path = os.path.join("..", "..", "..", "options", "bitly.json")+ key_path = os.path.join("..", "..", "..", "etc", "bitly.json")with open(key_path) as fp:config = json.load(fp)login = config["login"]