2018年4月11日

摘要: Dockerfile 文件如下: 以上镜像是自己根据centos-php56+nginx 修改的。 docker 生成镜像,启动命令如下 -v 是为了把里面的文件映射到外面来,为了方便修改本机代码,立即生效用的--发布时不需要,应当去掉,对于本地没有安装php环境的同学是需要的。 阅读全文
posted @ 2018-04-11 13:59 shenggen 阅读(1786) 评论(0) 推荐(0) 编辑

2017年11月10日

摘要: antd-mobile 简单的例子 预览地址 https://shenggen1987.github.io/antd-mobile-roadhog/#/crm/pages/users github源码地址 https://github.com/shenggen1987/antd-mobile-roa 阅读全文
posted @ 2017-11-10 16:28 shenggen 阅读(401) 评论(0) 推荐(0) 编辑

2017年9月18日

摘要: 以上是nginx的配置 以上是.roadhogrc的配置 /^(?!.*\.(css|js)).*$/ 正则不包含的css或者js 的正则 阅读全文
posted @ 2017-09-18 20:44 shenggen 阅读(531) 评论(0) 推荐(0) 编辑

2017年9月7日

摘要: github地址 https://github.com/shenggen1987/dva-cli-demo 效果图片 阅读全文
posted @ 2017-09-07 21:15 shenggen 阅读(429) 评论(0) 推荐(0) 编辑

2017年8月1日

摘要: 增加了一个 location 用来配置uri里头有html的,我用html来标识是否是客户端页面。 通过rewrite .* /index.html break;把一切path重写为/index.html,break很重要,它使得url的匹配结束,最终服务返回的文档其实是/home/hard/Pro 阅读全文
posted @ 2017-08-01 15:31 shenggen 阅读(354) 评论(0) 推荐(0) 编辑

2017年7月18日

摘要: npm install nodejieba var nodejieba = require("nodejieba"); var result = nodejieba.cut("帝国主义要把我们的地瓜分掉"); console.log(result); //[ '帝国主义', '要', '把', '我 阅读全文
posted @ 2017-07-18 17:15 shenggen 阅读(474) 评论(0) 推荐(0) 编辑

2017年6月1日

摘要: vim run.sh #!/bin/baship=`ifconfig eth0 |grep "inet"|awk '{print $2}'`hn=dubbo-service-provider docker run -d -it --name sku -p 8090:8080 -v /srv/logs 阅读全文
posted @ 2017-06-01 14:25 shenggen 阅读(317) 评论(0) 推荐(0) 编辑

2017年4月25日

摘要: Dockfile文件内容,参考如上 images打包 docker build --tag="hub.qjdchina.com/qjd/wecenter:v0.0.1" ./ 启动 docker run -d -p 90:80 -e NODE_ENV=dev -v /Users/xiexuemei/ 阅读全文
posted @ 2017-04-25 16:32 shenggen 阅读(323) 评论(0) 推荐(0) 编辑

2017年2月15日

摘要: 只需要添加一个文件即可 api/blueprints/find.js 代码如下 重写路由(/:modelIdentity/find) 查看效果,请输入如下链接, 详情 请看我的github https://github.com/shenggen1987/sails-demo.git http://l 阅读全文
posted @ 2017-02-15 17:50 shenggen 阅读(488) 评论(1) 推荐(0) 编辑
摘要: Dockerfile 代码 nginx.conf 代码 阅读全文
posted @ 2017-02-15 11:08 shenggen 阅读(1971) 评论(0) 推荐(0) 编辑

导航