typcn / leanclub Goto Github PK
View Code? Open in Web Editor NEWC++ forum system
Home Page: https://leanclub.org/
License: Other
C++ forum system
Home Page: https://leanclub.org/
License: Other
~/src/LeanClub/databases$ sudo -i -u couchdb couchdb
Apache CouchDB is running as process 10837, time to relax.
显示已经运行
netstat -tnal也可以看到
tcp 0 0 127.0.0.1:5984 0.0.0.0:* LISTEN
端口5984已经监听
但是用浏览器打开
http://10.0.0.49:5984/_utils/index.html
显示
无法显示此网页
ERR_CONNECTION_REFUSED
,请问如何解决
Compiled using my fork, not the original one.
Here is the Compilation log.
crow::json::wvalue ctx;
ctx["title"] = "zzzz";
ctx["time"] = "12:12";
ctx.str() 调试打印为空
如何将ctx转成json格式的字符串?
const std::string DATABASE_USERNAME = "";
const std::string DATABASE_PASSWORD = "";
const std::string GITHUB_OAUTH_ID = "";
const std::string GITHUB_OAUTH_SECRET = "";
const std::string GOOGLE_OAUTH_ID = "";
const std::string GOOGLE_OAUTH_SECRET = "";
const std::string Twitter_OAUTH_ID = "";
const std::string Twitter_OAUTH_SECRET = "";
在github申请了oauth id 和 Secret
填写到config.h
重新编译,测试
用github登录报错
Authorization callback URL:
http://o2ee.picp.net/login/callback/github
main.cpp 中
app.port(18080)
指定了端口,但是未看到绑定的IP设置
crow::SimpleApp app;
也没有找到crow::SimpleApp 这个类
wget -c http://localhost:18080/
--2015-12-11 10:02:17-- http://localhost:18080/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:18080... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:18080... connected.
HTTP request sent, awaiting response... (2015-12-11 02:02:17) [ERROR ] An uncaught exception occurred: invalid json object
500 Internal Server Error
看样子是数据库有点问题
I would like to point out that identifiers like "__leanclub__api__
" and "__URLENCODE_H__
" do not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
搜索功能会调用
s.swiftypecdn.com/install/v2/st.js
然后会将LeanClub站点的内容显示出来
Read failed
f12调式
/api/post/new
返回
Please post on offical site
SSL 连接出错
ERR_SSL_PROTOCOL_ERROR
无法与服务器建立安全连接。可能是服务器出现了问题,也可能是您没有服务器要求的客户端身份验证证书。
帖子内显示为:
2015-12-15 14-41-53屏幕截图.png
无法看到图片
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.