2012-03-29 12 views
0

私はCouchDBのアプリで書き換えを使用しない場合は、私の静的なファイルへのリンクが壊れる:このCouchDBリライトハンドラの無限ループを修正するにはどうすればよいですか?

GET http://127.0.0.1:5984/mythshare-dev/_design/mythshare/_rewrite/static/js/jquery-1.7.1.min.js 404 (Object Not Found) 
GET http://127.0.0.1:5984/mythshare-dev/_design/mythshare/_rewrite/static/js/json2.js 404 (Object Not Found) 
GET http://127.0.0.1:5984/mythshare-dev/_design/mythshare/_rewrite/static/style/example.css 404 (Object Not Found) 
modules.js:4264Uncaught ReferenceError: $ is not defined 

は、だから私は、壊れたリンクを修正するために、この書き換えを追加しました:

{from: '/static/*', to: 'static/*'} 

私の壊れたリンクですハンドラは正しく動作しません。 modules.jsの機能が一致していないハンドル...これにつながる

exports.handle = function (method, url, data) { 
    if (exports.unknown_target) { 
     window.location = exports.getBaseURL() + url; 
     return; 
    } 

    // match resolves to FALSE 
    var match = exports.matchURL(method, url); 
    ... 

:無限ループに陥っ

... 
    else { 
     // this log is written over and over in the console 
     console.log(method + ' ' + url + ' -> [404]'); 
     window.location = exports.getBaseURL() + url; 
     return; 
    } 

ページは現在絶えず更新され、。

スタティックディレクトリに書き直して、正しく解決して一致するようにするにはどうすればよいですか?

+0

base.htmlファイルテンプレートに 'modules.js'ファイルが含まれているようです。それを取り除いた後、ページは機能します。しかし、私は誰かがエラーの根本的な原因を知っていて助けてくれることを期待して、これを少し残しておきます。 –

答えて

0

base.htmlテンプレートのmodules.jsのスクリプトタグを削除します。

関連する問題