【问题标题】:Couchbase Lite access failed in react-nativeCouchbase Lite 访问在 react-native 中失败
【发布时间】:2015-09-28 10:32:38
【问题描述】:

我按照以下步骤操作 https://gist.github.com/jchris/3c32524577deff3d69aa 我还在上述链接的评论中发布了我的详细信息步骤

但我不能使用“http://lite.couchbase./mydb/”来连接本地 couchbase lite 以响应本机

任何提示将不胜感激!

【问题讨论】:

    标签: couchbase react-native couchbase-lite


    【解决方案1】:

    解决了: 使用以下方法:

    - (void)launchCouchbaseLite
    {
      NSLog(@"Launching Couchbase Lite...");
      CBLManager* dbmgr = [CBLManager sharedInstance];
      CBLRegisterJSViewCompiler();
    
      CBLListener* listener = [[CBLListener alloc] initWithManager:dbmgr         port:5800];
      [listener start:nil];
    
      NSLog(@"Couchbase Lite url = %@, and port %d", dbmgr.internalURL, listener.port);
    }
    

    然后使用“http://127.0.0.1:5800/yourDBName”作为 REST URL 而不是“http://lite.couchbase./yourDBName

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-31
      • 2021-07-04
      • 1970-01-01
      • 2019-10-31
      • 2020-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多