【发布时间】:2015-09-28 10:32:38
【问题描述】:
我按照以下步骤操作 https://gist.github.com/jchris/3c32524577deff3d69aa 我还在上述链接的评论中发布了我的详细信息步骤
但我不能使用“http://lite.couchbase./mydb/”来连接本地 couchbase lite 以响应本机
任何提示将不胜感激!
【问题讨论】:
标签: couchbase react-native couchbase-lite
我按照以下步骤操作 https://gist.github.com/jchris/3c32524577deff3d69aa 我还在上述链接的评论中发布了我的详细信息步骤
但我不能使用“http://lite.couchbase./mydb/”来连接本地 couchbase lite 以响应本机
任何提示将不胜感激!
【问题讨论】:
标签: couchbase react-native couchbase-lite
解决了: 使用以下方法:
- (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”
【讨论】: