Permalink
Browse files

better code

  • Loading branch information...
1 parent 2210540 commit 003e25291fd0a2d6a787f345b78736b7092fb03a @tokuhirom committed Dec 28, 2011
Showing with 23 additions and 1 deletion.
  1. +17 −0 etc/nginx.conf
  2. +5 −1 htdocs/js/jsapi.js
  3. +1 −0 log/nginx/.gitignore
View
@@ -0,0 +1,17 @@
+server {
+ listen 80;
+ server_name jsapi.64p.org;
+ server_name_in_redirect off;
+
+ charset utf-8;
+
+ access_log /usr/local/webapp/jsapi/log/nginx/access.log main buffer=32k;
+ error_log /usr/local/webapp/jsapi/log/nginx/error.log;
+
+ location / {
+ if ( -f /usr/local/webapp/jsapi/code/maintenance) {
+ return 503;
+ }
+ alias /usr/local/webapp/jsapi/htdocs/;
+ }
+}
View
@@ -126,7 +126,11 @@ $(function () {
}
});
- $.ajax({url: 'index.json', cache: false}).success(function (dat) {
+ $.ajax({
+ url: 'index.json',
+ dataType: 'json',
+ cache: false
+ }).success(function (dat) {
view.sideLoading.remove();
var ul = JSAPI.titleContainerElem;
View
@@ -0,0 +1 @@
+*

0 comments on commit 003e252

Please sign in to comment.