Comments (9)
你是想微信机器人和网页共用一个域名?
如果是的话:
用 Nginx 作反代,把一个目录代理给 WeRoBot ,其他的代理给这个页面
如果不是的话:
直接把域名丢给哪个页面就好了啊
from werobot.
我在sina app 上使用, 假设地址是 :robot.sinaapp.com , 我希望使用werobot中的bottle解析 robot.sinaapp.com/hello ,应该怎么写呢
from werobot.
@liuchang0812 可以尝试用 Tornado 把两个 WSGI 应用 「粘」到一起:
import tornado.web
import tornado.wsgi
from robot import robot
from your_app import app
robot = tornado.wsgi.WSGIContainer(robot)
app = tornado.wsgi.WSGIContainer(app)
application = tornado.web.WSGIApplication([
('/robot', tornado.web.FallbackHandler, dict(fallback=robot)),
('.*', tornado.web.FallbackHandler, dict(fallback=robot)),
])
from werobot.
我试着采用@whtsky提到的方法来合并,提示TypeError: 'WeRoBot' object is not callable
from werobot.
= =
把第一个 WSGIContainer 那里的 robot 改成 robot.wsgi 吧……
@dalang
from werobot.
好像是应该robot.app
。 谢谢你总是很及时的回复,big thanks @whtsky
from werobot.
@dalang 客气了≥﹏≤
from werobot.
@dalang 0.3.4 版本里改成 robot.wsgi 了
from werobot.
好的,谢谢你的提醒。我也会及时升级我的微信机器人。:-P
在 2013-4-13 下午5:27,"whtsky" [email protected]写道:
@dalang https://github.com/dalang 0.3.4 版本里改成 robot.wsgi 了
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-16330228
.
from werobot.
Related Issues (20)
- Session问题 HOT 1
- 服务器侧获得用户推送的经纬度 HOT 1
- 监听无效果 -- Ineffectiveness Monitoring HOT 1
- 服务器占cpu用100%
- 重复发送同一条消息导致消息返回失败
- [求助]消息发送失败 HOT 3
- 'NoneType' object has no attribute 'writeHeaders'
- 突然100%故障了: Broken pipe HOT 1
- token验证失败
- 如果我想用ImageReply返回图像,只能返回素材库内部的 图像吗?如果想要返回外部图像 应该怎么做?
- 我使用@robot.text获取用户消息并且执行时,它自动获取了三遍用户消息,并且执行了三遍我的代码逻辑 HOT 6
- 被动回复消息,回复多个图片消息会重复发送同一张图片 HOT 2
- AttributeError: module 'werobot' has no attribute 'WeRoBot' HOT 2
- @myrobot.text回复函数运行超过一段时间会导致连接失败 HOT 1
- 使用PG 做session 存储,报错 psycopg2.errors.UndefinedFunction: operator does not exist: character varying = bytea
- 怎么输入文字返回图片?
- 请问纯python开发的话,在公众号内部实现微信支付的逻辑应该是什么样的呢? HOT 2
- 我的公众号机器人一直回复”再问我一次吧”,无论发什么都是这样回答
- 多个Client会冲突。
- 请问用这个库可以做到让服务器给微信公众号发消息,并显示出来吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from werobot.