我在https://gist.github.com/jchris/3c32524577deff3d69aa上遵循了这些步骤,我还在上面链接的评论中发布了我的详细步骤
但是我不能使用"http://lite.couchbase./mydb/“来连接react native中的本地couchbase lite
任何建议都将不胜感激!
发布于 2015-09-29 21:19:46
已解决:使用以下方法:
- (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“代替"http://lite.couchbase./yourDBName”作为REST URL
https://stackoverflow.com/questions/32820888
复制相似问题