上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 44 下一页
摘要: https://gorails.com/episodes/rails-link-to-current-page-with-params?autoplay=1 如何链接到当前页并增加,移除,或者修改URL中的params。 当使用search or index pages with filters很方 阅读全文
posted @ 2018-11-10 21:04 Mr-chen 阅读(380) 评论(0) 推荐(0) 编辑
摘要: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Chec 阅读全文
posted @ 2018-11-10 16:49 Mr-chen 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 使用Cable进行pub: 其中:AddressesController.render,是一个类方法,用于渲染view/addresses/_addresses.html.erb模版,并传入一个实例变量address。 然后App收到数据,把数据添加到DOM上。 分析: 1. 注意data是一个ha 阅读全文
posted @ 2018-11-09 17:06 Mr-chen 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 在使用ActionCable时, 提示在chrome控制台 innerHTML is null 报告❌。 这是因为此时DOM还没有加载完成。 解决方法: 使用: 传统做法是window.onload = function {} . 阅读全文
posted @ 2018-11-09 15:50 Mr-chen 阅读(3456) 评论(0) 推荐(0) 编辑
摘要: 设定的密🔑登陆,失去效果。 又设定了PasswordAuthentication no,现在ssh登陆不上服务器了。 阿里云:使用云的网页版远程登陆。 需要注意自己保存好远程连接密码。 阅读全文
posted @ 2018-11-09 10:06 Mr-chen 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 运维常用指令 如何使用log: 1.用deploy登陆。 2.cd ~/xxx/current. 进入Rails程序的当前目录下。 3.tail -n 500 log/production.log 查看最近期的500条记录。 4.tail -f log/production.log 这样一直挂着,随 阅读全文
posted @ 2018-11-08 20:21 Mr-chen 阅读(971) 评论(0) 推荐(0) 编辑
摘要: https://ruby-china.org/topics/36899 附加https://ruby-china.org/topics/36899 Capistrano + Rails5.2部署 使用rbenv 安装Ruby 用Mysql 5.7 安装Nginx + Passenger 服务器系统: 阅读全文
posted @ 2018-11-05 20:23 Mr-chen 阅读(968) 评论(0) 推荐(0) 编辑
摘要: Gorails视频 https://gorails.com/deploy/actioncable Action Cable – Integrated WebSockets for Rails https://github.com/rails/rails/tree/master/actioncable 阅读全文
posted @ 2018-11-03 10:56 Mr-chen 阅读(735) 评论(0) 推荐(0) 编辑
摘要: Linux运营维护(简称运维) 这里是简单的使用介绍: 参考:http://einverne.github.io/post/2017/06/ubuntu-debian-install-nginx.html (安装和简介) Nginx 配置参考文: http://einverne.github.io/ 阅读全文
posted @ 2018-11-01 16:26 Mr-chen 阅读(682) 评论(0) 推荐(0) 编辑
摘要: https://www.phusionpassenger.com/docs/tutorials/what_is_passenger/ What is Passenger? 一个开源的web程序服务。它除了HTTP请求,管理进程和资源,能够administration, monitoring,并进行问 阅读全文
posted @ 2018-10-31 21:22 Mr-chen 阅读(1243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 44 下一页