Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
吕小荣
@xiaoronglv
Admin
NO. 1638 / 2012-03-29

workstream.us
上海
198 Topics / 1618 Replies
236 Followers
0 Following
17 Favorites
社区清洁工
GitHub Public Repos
  • xiaoronglv.github.io 4

    Ryan's Blog

  • golang-ent-playground-... 0

    https://entgo.io/docs/getting-started

  • surge-rules 0

  • docs.nestjs.com 0

    The official documentation https://docs.nestjs.com 📕

  • clash-rules 0

  • chinese-independent-blogs 0

    中文独立博客列表

  • express_projects_with_... 0

    Good open source projects powered by express.js

  • xiaoronglv 0

  • CKA-Exercises 0

    Practice for the Certified Kubernetes Administrator (CKA) Exam

  • CKAD-exercises 0

    A set of exercises to prepare for Certified Kubernetes Application Developer exam by Cloud Native...

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Capistrano 部署时没有生成 current 目录是什么原因? at March 12, 2013

    #2 楼 @happypeter

    哥,你别这么说。

    我们刚学会 cap, 你就抛弃不用了。

    -_-

  • 用哪个账号执行 capistrano 的 deploy:setup 命令? at March 12, 2013

    #5 楼 @lidashuang

    我做了一个折中的处理办法:

    1. 给 webapp sudo 权限

    2. 所有的账号通过密钥登陆。

    这样安全性应该没问题吧。

  • 用哪个账号执行 capistrano 的 deploy:setup 命令? at March 12, 2013

    #1 楼 @lidashuang

    其实我放到了 webapp 的目录中。但发布时系统还是要求我 sudo 权限。奇怪了。

    https://github.com/xiaoronglv/chalkboard/blob/master/config/deploy.rb

    require 'rvm/capistrano'
    require 'bundler/capistrano'
    
    set :rvm_type, :system
    set :rvm_ruby_string, 'ruby-2.0.0-p0'
    set :runner, 'webapp'
    set :user, 'webapp'
    
    role :web, '192.81.130.103'
    role :app, '192.81.130.103'
    role :db, '192.81.130.103', :primary => true
    
    set :application, 'chalkboard'
    set :deploy_to, '/home/webapp/apps/chalkboard'
    set :use_sudo, false
    
    set :repository, 'git://github.com/xiaoronglv/chalkboard.git'
    set :scm, :git
    set :scm_verbose, true
    set :branch, 'master'
    set :deploy_via, :remote_cache
    
    default_run_options[:pty] = true
    
    
    after 'deploy', 'deploy:cleanup'
    
    namespace :deploy do
    
      task :start, :roles => :app do
        run "cd #{deploy_to}/current/; RAILS_ENV=production bundle exec unicorn_rails -c config/unicorn.rb -D"
        #run "/etc/init.d/unicorn_#{application} start"
      end
    
      task :stop, :roles => :app do
        run "kill -QUIT `cat #{deploy_to}/current/tmp/pids/unicorn.pid`"
        #run "/etc/init.d/unicorn_#{application} stop"
      end
    
      desc "Restart Application"
      task :restart, :roles => :app do
        run "kill -USR2 `cat #{deploy_to}/current/tmp/pids/unicorn.pid`"
      end
    
    
      task :setup_config, :roles => :app do
        sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}.conf"
        sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
        run "mkdir -p #{shared_path}/config"
        put File.read('config/database.example.yml'), "#{shared_path}/config/database.yml"
        puts "Now edit the config files in #{shared_path}."
      end
      after 'deploy:setup', 'deploy:setup_config'
    
      task :symlink_config, :roles => :app do
        run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
      end
      after 'deploy:finalize_update', 'deploy:symlink_config'
    
    end
    
  • 使用 ActionMailer 发邮件被标识为垃圾邮件,不让发送怎么办? at March 11, 2013

    我发现一个规律,@iBachue 特别喜欢回复美女提的问题。

    :)

  • 山东的 Ruby 人才不少啊,山东用 Ruby 的企业几乎没有啊 at March 11, 2013

    我是济南人,回家亲戚问我:啥是 IT 啊,打游戏吗?

    好好的医生不当,搞 it !!

  • Rails 中使用 Bootstrap 效果请教 at March 11, 2013

    /app/assets/stylesheets/bootstrap_and_overrides.css

    @import "twitter/bootstrap/bootstrap";
    
    body { padding-top: 60px; } 
    
    @import "twitter/bootstrap/responsive";
    

    我也曾碰到过这个问题,详情看这里。

    http://railscasts.com/episodes/328-twitter-bootstrap-basics?view=asciicast

  • 山理工 Ruby Gem 镜像源上线 at March 11, 2013

    淄博出人才啊。

  • writings.io - 提供在线文章写作、管理、发布的网站服务 at March 10, 2013

    简洁,写作时不会有干扰。

  • unicorn 使用简介 at March 10, 2013

    好文章。

  • 多用户使用 rvm 安装的 ruby at March 09, 2013

    #2 楼 @chentianwen 什么意思啊?

  • 用 Rails 折腾微信 API 的一点小技巧 at March 09, 2013

    相比 node, 有啥优势?

  • “开源中国” 三折卖 RubyMine,这个工具如何? at March 08, 2013

    读源码挺方便

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at March 05, 2013

    有没有从滨江阿里/网易附近出发的啊,求搭车。

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at March 04, 2013

    @zhuf @samqiu

    去吗?

  • 哪里有最全面最细致的 Bootstrap 的教程? at March 04, 2013

    基础教程

    http://railscasts.com/episodes/328-twitter-bootstrap-basics?view=asciicast

    进阶

    http://railscasts.com/episodes/329-more-on-twitter-bootstrap?view=asciicast

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at March 04, 2013

    搞吧。好久没见你们了。

  • 要不要换一份工作 at February 20, 2013

    #18 楼 @zhuf 要换了?

  • 想买 Railscasts Pro at February 17, 2013

    才 9 美元,尊重一下作者吧

  • 半天还没收到验证邮箱…… at February 16, 2013

    没验证。Rei 没骗你

  • 新站测试上线,欢迎拍砖…… at January 26, 2013

    提两点小意见:

    1. seo 网页的 description 是空的。 head 的文案不够好。

    2. 部分图片有点模糊

  • 毕业半年被迫做构建,想转 ROR,情深缘浅 at January 19, 2013

    quote: 现在都没有机会写 java 代码,就一直做构建,对于新人真的受不了

    新人静不下心来,去哪都一样。

    如果你想写代码,自己去和同事沟通,去学习。当你能体现更大价值时,公司就交给你更高的任务,把简单机械的事情交给新人。

    建议你刚毕业不要乱跳槽,踏踏实实把工作做好,业余时间学习 ROR

  • [北京] 招聘 Ruby 工程师薪资面议 at January 19, 2013

    连头像也没有。

    估计注册,发完帖就跑了。

  • 折腾半天无果,深夜求教 bootstrap 的 affix 问题 at January 19, 2013

    我在看 bootstrap 时,一直不理解 affix 的效果。

    能解释一下吗。

    顺便打车了。

    ^_^

  • 亚马逊的 EC2 是不是整体被墙了? at January 17, 2013

    中国的创业者,真是不容易啊。

  • 工作中的教训总结,供大家围观 at January 15, 2013

    太长了。

  • iccfish/12306_ticket_helper,一个惊动了 GitHub 运营小组的项目 at January 15, 2013

    #1 楼 @diudiutang

    raw.github.com 是干嘛用的。

  • 用 Clojure 写的阅读器,请轻拍 at January 13, 2013

    申请很久了,什么时候能通过审核啊。

  • [地区不限] 2ViVe 招 Ruby On Rails 开发 - 可春节后到岗 - 薪水范围 10k-14k at January 13, 2013

    靠谱 同学们,抓紧修炼吧。

  • [杭州][2013年01月08号] Ruby Thursday,我们一起学 haskell at January 10, 2013

    你们这些「骗子」, 居然在聊 javascipt.

    貌似很有意思。

  • 脚本如何规避单引号的导致的 SQL syntax 问题? at January 07, 2013

    #10 楼 @zhangyuan

    hello, 你有没有试过这个方法。

    s.gsub(/\/, '&&') 好想有问题。反斜线\的转义方法应该为双反斜杠\\

  • Prev
  • 1
  • 2
  • …
  • 41
  • 42
  • 43
  • 44
  • 45
  • …
  • 47
  • 48
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English