03 2016 档案
摘要:此处接上一条博客 执行 打开管理页面就可以看到了所有的任务了 http://localhost:9292/ 可以在sidekiq启动的时候存入任务进程号 可以使用sidekiqctl关闭服务
阅读全文
摘要:参考页面 https://github.com/mperham/sidekiq https://github.com/mperham/sidekiq/wiki/Getting-Started 强烈推荐这个视频 https://www.youtube.com/watch?v=bfPb1zD91Rg&i
阅读全文
摘要:$ git reset --hard bit/add $ git log --oneline --graph
阅读全文
摘要:$ RAILS_ENV=production bundle exec rails c irb(main):008:0> r = ActiveRecord::Base.connection.execute 'show create database ott_remote_cms_production' => #:array, :async=>false, :cast_booleans=...
阅读全文
摘要:how-to-use-rake-tasks-to-generate-migration-sql Rakefile文件里有load_tasks的方法 http://api.rubyonrails.org/ 相关文档 http://guides.rubyonrails.org/command_line.
阅读全文
摘要:原因是这样的,运维不开放正式环境数据库的alter权限,所以每次都要给他们把sql语句发过去, 由他们来操作。 https://github.com/capistrano/rails 参考的是https://github.com/capistrano/rvm/issues/49 以下是最终修改后的C
阅读全文
摘要:经过排查,是因为 Capistrano 部署中设置了 http_proxy。此时通过 cas.m.xxxx.com 域名去访问 CAS 服务时,就不通了,需要修改为 IP 来访问。 但是公司的 CAS 服务 cas.xxxx.com,即使设置了代理,也是可以访问的。所以 以后的系统建议都使用公司的
阅读全文
摘要:10:49 [webuser@a02]$ du -hs * 45M m-video-fetcher-for-y 758M tv-c-cms 118M tv-y-cms 162M virtual-r-cms tty:[4] jobs:[0] cwd:[/opt/app/ruby] 10:49 [webuser@a02]$ du -hs m-cms/* 0 m-...
阅读全文
摘要:部署的时候发现需要输入服务器密码,不能直接登录 3.0+版本config/deploy.rb 取消了user的写法 需要用这样的写法 https://github.com/capistrano/capistrano/blob/621985511529893d972e79452ad63eb54430f
阅读全文
摘要:https://github.com/capistrano/capistrano/blob/v3.4.0/lib/capistrano/templates/stage.rb.erb 把/config/deploy/production.rb中的服务器列表改为数组的形式
阅读全文
摘要:https://github.com/ruby-grape/grape https://github.com/ruby-grape/grape#param requires :subject_id_list, type: Array[String], allow_blank: false 请求的时候
阅读全文
摘要:本文为转载,原内容见下方博客链接 http://www.cnblogs.com/starof/p/4680083.html 一、系统环境 yum update升级以后的系统版本为 [root@yl-web yl]# cat /etc/redhat-release CentOS Linux relea
阅读全文
摘要:http://api.rubyonrails.org/v3.0.8/ 在官网搜索link_to会有一些详细的介绍, 这里只把我自己的例子记下来 <%= link_to("删除多余视频", delete_useless_video_cibn_videos_path(:module_id => @mod
阅读全文
摘要:https://github.com/rbenv/rbenv#installation 安装ruby的第三步 Run ~/.rbenv/bin/rbenv init for shell-specific instructions on how to initialize rbenv to enabl
阅读全文
摘要:http://jscolor.com/ http://jscolor.com/examples/ 今天使用了js里的颜色选择器,后来发现在ruby代码里有个问题,在编辑页面需要重新刷新一次才能加载这个控件。 Turbolinks 中的事件列表: https://github.com/turbolin
阅读全文

浙公网安备 33010602011771号