Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sky/tools/sky_server

Issue 692163002: Fix urls under /sky to work again (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/tools/skydb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « no previous file | sky/tools/skydb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698