Show More
@@ -119,6 +119,9 b' full_stack = true' | |||
|
119 | 119 | ## Serve static files via RhodeCode, disable to serve them via HTTP server |
|
120 | 120 | static_files = true |
|
121 | 121 | |
|
122 | # autogenerate javascript routes file on startup | |
|
123 | generate_js_files = false | |
|
124 | ||
|
122 | 125 | ## Optional Languages |
|
123 | 126 | ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh |
|
124 | 127 | lang = en |
@@ -379,7 +382,6 b' beaker.session.auto = false' | |||
|
379 | 382 | search.module = rhodecode.lib.index.whoosh |
|
380 | 383 | search.location = %(here)s/data/index |
|
381 | 384 | |
|
382 | ||
|
383 | 385 | ################################### |
|
384 | 386 | ## APPENLIGHT CONFIG ## |
|
385 | 387 | ################################### |
@@ -82,7 +82,7 b' def load_environment(global_conf, app_co' | |||
|
82 | 82 | |
|
83 | 83 | config['routes.map'] = make_map(config) |
|
84 | 84 | |
|
85 |
if asbool(config[' |
|
|
85 | if asbool(config['generate_js_files']): | |
|
86 | 86 | jsroutes = config['routes.map'].jsroutes() |
|
87 | 87 | jsroutes_file_content = generate_jsroutes_content(jsroutes) |
|
88 | 88 | jsroutes_file_path = os.path.join( |
@@ -29,7 +29,8 b' def generate_jsroutes_content(jsroutes):' | |||
|
29 | 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 | 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