mv /client to /js
This commit is contained in:
parent
a059171ca9
commit
10c65561ed
@ -155,7 +155,7 @@ def main():
|
||||
|
||||
app = SharedDataMiddleware(isso.wsgi_app, {
|
||||
'/static': join(dirname(__file__), 'static/'),
|
||||
'/client': join(dirname(__file__), 'client/')
|
||||
'/js': join(dirname(__file__), 'js/')
|
||||
})
|
||||
|
||||
run_simple(conf.get('server', 'host'), conf.getint('server', 'port'),
|
||||
|
@ -15,11 +15,11 @@ define(["lib/q"], function(Q) {
|
||||
// guess Isso API location
|
||||
var js = document.getElementsByTagName("script");
|
||||
for (var i = 0; i < js.length; i++) {
|
||||
if (js[i].src.match("/client/require\\.js$")) {
|
||||
endpoint = js[i].src.substring(0, js[i].src.length - 18);
|
||||
if (js[i].src.match("/js/require\\.js$")) {
|
||||
endpoint = js[i].src.substring(0, js[i].src.length - 14);
|
||||
break;
|
||||
} else if (js[i].src.match("/client/embed\\.js$")) {
|
||||
endpoint = js[i].src.substring(0, js[i].src.length - 16);
|
||||
} else if (js[i].src.match("/js/embed\\.js$")) {
|
||||
endpoint = js[i].src.substring(0, js[i].src.length - 12);
|
||||
break;
|
||||
}
|
||||
|
@ -4,8 +4,8 @@
|
||||
<title>Hello World</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
<!--<script src="/client/embed.js"></script>-->
|
||||
<script data-main="/client/embed" src="/client/require.js"></script>
|
||||
<!--<script src="/js/embed.js"></script>-->
|
||||
<script data-main="/js/main" src="/js/require.js"></script>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0 auto;
|
||||
|
Loading…
Reference in New Issue
Block a user