OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import os | 7 import os |
8 import cherrypy | 8 import cherrypy |
9 import staticdirindex | 9 import staticdirindex |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 'log.screen': args.verbose, | 58 'log.screen': args.verbose, |
59 'log.access_log': os.path.join(log_dir, 'access_log.txt'), | 59 'log.access_log': os.path.join(log_dir, 'access_log.txt'), |
60 # This causes some strange python exception?? | 60 # This causes some strange python exception?? |
61 # 'log.error_log': os.path.join(log_dir, 'error_log.txt'), | 61 # 'log.error_log': os.path.join(log_dir, 'error_log.txt'), |
62 }, | 62 }, |
63 '/': { | 63 '/': { |
64 'tools.staticdir.on': True, | 64 'tools.staticdir.on': True, |
65 'tools.staticdir.dir': os.path.abspath(args.app_path), | 65 'tools.staticdir.dir': os.path.abspath(args.app_path), |
66 'tools.staticdir.indexlister': skydir, | 66 'tools.staticdir.indexlister': skydir, |
67 }, | 67 }, |
68 '/mojo': { | 68 '/mojo/public': { |
69 'tools.staticdir.on': True, | 69 'tools.staticdir.on': True, |
70 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo'), | 70 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo', 'public'), |
71 }, | 71 }, |
72 '/sky': { | 72 '/mojo/public': { |
abarth-chromium
2014/10/31 18:43:39
/mojo/services
| |
73 'tools.staticdir.on': True, | 73 'tools.staticdir.on': True, |
74 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky'), | 74 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'mojo', 'services'), |
75 }, | 75 }, |
76 '/sky/framework': { | 76 '/sky/services': { |
77 'tools.staticdir.on': True, | 77 'tools.staticdir.on': True, |
78 'tools.staticdir.dir': | 78 'tools.staticdir.dir': os.path.join(GEN_ROOT, 'sky', 'services'), |
79 os.path.join(SKY_ROOT, 'framework'), | |
80 }, | 79 }, |
81 } | 80 } |
82 cherrypy.quickstart(config=config) | 81 cherrypy.quickstart(config=config) |
83 | 82 |
84 | 83 |
85 if __name__ == '__main__': | 84 if __name__ == '__main__': |
86 main() | 85 main() |
OLD | NEW |