##// END OF EJS Templates
javascript: use separate ini config for generating dynamic js files
dan -
r263:967dd702 default
parent child Browse files
Show More
@@ -119,6 +119,9 b' full_stack = true'
119 ## Serve static files via RhodeCode, disable to serve them via HTTP server
119 ## Serve static files via RhodeCode, disable to serve them via HTTP server
120 static_files = true
120 static_files = true
121
121
122 # autogenerate javascript routes file on startup
123 generate_js_files = false
124
122 ## Optional Languages
125 ## Optional Languages
123 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
126 ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh
124 lang = en
127 lang = en
@@ -379,7 +382,6 b' beaker.session.auto = false'
379 search.module = rhodecode.lib.index.whoosh
382 search.module = rhodecode.lib.index.whoosh
380 search.location = %(here)s/data/index
383 search.location = %(here)s/data/index
381
384
382
383 ###################################
385 ###################################
384 ## APPENLIGHT CONFIG ##
386 ## APPENLIGHT CONFIG ##
385 ###################################
387 ###################################
@@ -82,7 +82,7 b' def load_environment(global_conf, app_co'
82
82
83 config['routes.map'] = make_map(config)
83 config['routes.map'] = make_map(config)
84
84
85 if asbool(config['debug']):
85 if asbool(config['generate_js_files']):
86 jsroutes = config['routes.map'].jsroutes()
86 jsroutes = config['routes.map'].jsroutes()
87 jsroutes_file_content = generate_jsroutes_content(jsroutes)
87 jsroutes_file_content = generate_jsroutes_content(jsroutes)
88 jsroutes_file_path = os.path.join(
88 jsroutes_file_path = os.path.join(
@@ -29,7 +29,8 b' def generate_jsroutes_content(jsroutes):'
29 * DO NOT CHANGE THIS FILE MANUALLY *
29 * DO NOT CHANGE THIS FILE MANUALLY *
30 * *
30 * *
31 * *
31 * *
32 * This file is automatically generated when the app starts up. *
32 * This file is automatically generated when the app starts up with *
33 * generate_js_files = true *
33 * *
34 * *
34 * To add a route here pass jsroute=True to the route definition in the app *
35 * To add a route here pass jsroute=True to the route definition in the app *
35 * *
36 * *
General Comments 0
You need to be logged in to leave comments. Login now