0
, 내 정적 파일 링크 휴식 :이 CouchDB 다시 작성기의 무한 루프를 어떻게 해결할 수 있습니까? 내 CouchDB를 응용 프로그램에 재를 사용하지 않는 경우
{from: '/static/*', to: 'static/*'}
내 깨진 링크는 다음과 같습니다
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
그래서 내가 깨진 링크를 해결하기 위해이 재 작성을 추가 고정되어 있지만 핸들러가 제대로 작동하지 않습니다.
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;
}
페이지는 현재 지속적으로 갱신됩니다.
다시 쓰기를 정적 디렉토리에 써서 올바르게 해석하고 일치시킬 수 있습니까?
base.html 파일 템플릿에 'modules.js'파일이 포함 된 것처럼 보입니다. 제거한 후 페이지가 작동합니다. 그러나 누군가가 오류의 근본 원인을 알고 도움을 줄 수 있기를 희망합니다. –