Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODE is coming #68

Merged
merged 1 commit into from Dec 6, 2015
Merged

CODE is coming #68

merged 1 commit into from Dec 6, 2015

Conversation

dongweiming
Copy link
Contributor

@xutao

我本地跑起来看差不多. 先放出来

这次修改情况介绍:

  1. mq使用celery封装了async(只修改了代码, 还没有调试)
  2. 剥离dae的登录逻辑, 使用quixote自带的session (gunicorn -w 1 -b 0.0.0.0:8200 app:app). 多worker下看起来会有 Your session is invalid or has expired. Please reload this page to start a new session. #12 的问题
  3. 登录和注册页面使用react+es6plus实现, 使用webpack作为模块加载方案

和之前的用法不同点:

  1. BEANSDB需要跑起来实例, vilya/config.py中有设置:
memcached -d -u nobody -l 127.0.0.1 -p 7901 -U 0 
memcached -d -u nobody -l 127.0.0.1 -p 7902 -U 0 
memcached -d -u nobody -l 127.0.0.1 -p 7903-U 0 
  1. react生成代码在dist目录下. 源文件在hub/static/jsx
    可以使用npm start启动.

平时重新编译都是webpack --progress --colors --watch

其他:

  1. 尝试集成werkzeug.debug.DebuggedApplication失败...
  2. 还没有更新Dockerfile

OK.

其他同学们可以看一下效果(有一些页面还没有截图, 主要是因为CODE这些页面包含工作相关内容). 之后在测试环境中都会填充进来

screen shot 2015-12-05 at 12 59 33 am

screen shot 2015-12-05 at 12 57 52 am

screen shot 2015-12-05 at 12 57 14 am

screen shot 2015-12-05 at 12 56 15 am

screen shot 2015-12-05 at 12 54 17 am

screen shot 2015-12-05 at 4 11 53 pm

screen shot 2015-12-05 at 4 11 21 pm

screen shot 2015-12-05 at 4 10 47 pm

screen shot 2015-12-05 at 4 10 25 pm

screen shot 2015-12-05 at 4 10 14 pm

screen shot 2015-12-05 at 4 08 58 pm

screen shot 2015-12-05 at 12 52 41 am

screen shot 2015-12-05 at 1 00 07 am

screen shot 2015-12-05 at 1 05 59 am

screen shot 2015-12-05 at 1 05 44 am

screen shot 2015-12-05 at 1 08 52 am

screen shot 2015-12-05 at 1 11 28 am

screen shot 2015-12-05 at 1 12 45 am

screen shot 2015-12-05 at 1 12 59 am

screen shot 2015-12-05 at 1 13 08 am

screen shot 2015-12-05 at 4 24 31 pm

screen shot 2015-12-05 at 4 23 56 pm

screen shot 2015-12-05 at 4 21 21 pm

在此截图, 表达为CODE添砖加瓦的工程师们的敬意

@dongweiming
Copy link
Contributor Author

注册时候限制比较多, 可以直接往数据库里面插入比较简单的密码和用户名用来测试.

如果每次重启session都过去还需要登录, 可以mock 在启动的时候自动设置用户session

@dongweiming dongweiming mentioned this pull request Dec 4, 2015
@qingfeng
Copy link

qingfeng commented Dec 4, 2015

NB!!

@qingfeng
Copy link

qingfeng commented Dec 4, 2015

要流淚了

@freeyoung
Copy link

好怀念。

@jumping
Copy link

jumping commented Dec 5, 2015

多谢!

@CMGS
Copy link

CMGS commented Dec 5, 2015

热泪盈眶啊

@mackjoner
Copy link

start已送

@sup4r
Copy link

sup4r commented Dec 5, 2015

@dongweiming 感谢各位 感谢明哥

@dongweiming
Copy link
Contributor Author

注册登录截图如下:

screen shot 2015-12-05 at 4 27 12 pm

screen shot 2015-12-05 at 4 33 04 pm

screen shot 2015-12-05 at 4 33 26 pm

screen shot 2015-12-05 at 4 34 05 pm

@CNBorn
Copy link

CNBorn commented Dec 5, 2015

@dongweiming 赞!不过可能最终开源版本中有些内部使用Emoji等图片可能会有版权问题,需要注意

@dongweiming
Copy link
Contributor Author

@CNBorn 感谢邢老师提醒. 我先把全部的emoji都去掉. 先研究下版权问题再加回来.

dongweiming added a commit that referenced this pull request Dec 6, 2015
@dongweiming dongweiming merged commit 42ad89b into douban:master Dec 6, 2015
@xtao
Copy link
Contributor

xtao commented Dec 6, 2015

👍

@qingfeng
Copy link

qingfeng commented Dec 6, 2015

NB!!!

2015-12-05 16:42 GMT+08:00 小明 notifications@github.com:

注册登录截图如下:

[image: screen shot 2015-12-05 at 4 27 12 pm]
https://cloud.githubusercontent.com/assets/841395/11606943/1d1becca-9b6f-11e5-9234-199adef8921a.png
[image: screen shot 2015-12-05 at 4 33 04 pm]
https://cloud.githubusercontent.com/assets/841395/11606944/1d1f61d4-9b6f-11e5-8414-85329c5b6066.png
[image: screen shot 2015-12-05 at 4 33 26 pm]
https://cloud.githubusercontent.com/assets/841395/11606945/1d23e470-9b6f-11e5-8309-1f7dd2cd768d.png
[image: screen shot 2015-12-05 at 4 34 05 pm]
https://cloud.githubusercontent.com/assets/841395/11606946/1d62e134-9b6f-11e5-9a54-a1939b5dc7f5.png


Reply to this email directly or view it on GitHub
#68 (comment).

@liaojinxing
Copy link

NB!

@jiangjianxiao
Copy link

支持, 我今天就开始切换原来的gogs到douban code

@jumping
Copy link

jumping commented Dec 7, 2015

能在 svn 里面用么

@txdywy
Copy link

txdywy commented Dec 7, 2015

看看

@yaojialyu
Copy link

NB 👍

@kdwycz
Copy link

kdwycz commented Dec 9, 2015

👍

@crazygit
Copy link

NB

@jjsty1e
Copy link

jjsty1e commented Dec 23, 2015

👍

1 similar comment
@beartung
Copy link

👍

@cuteluo1983
Copy link

支持,学习python中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet