Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
HorX
@hanhor
高级会员
第 2355 位会员 / 2012-05-29

上海
5 篇帖子 / 81 条回帖
1 关注者
4 正在关注
240 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #15 楼 @thisiskun 还是同样的错误

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #11 楼 @thisiskun 不是 deploy.rb 中有这句吗?

    put File.read("config/database.example.yml"), "#{shared_path}/config/database.yml"
    

    我进 #{shared_path}/config/ 中发现有 database.yml ,你说的是指这个吗?

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #12 楼 @hisea 我用的是 rvm,bundle 命令找不到的话我从 github 上 checkout 的代码 目录中执行 bundle 都可以

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #9 楼 @thisiskun 你是怎么解决的呢?

    是由于这里没有生成当前的 release 的原因吗?

    executing "if [ -d /home/deployer/apps/tick/shared/cached-copy ]; then cd /home/deployer/apps/tick/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard aef5b8ce4a532b0d7c9b9a04f5ce0d07563829a1 && git clean -q -d -x -f; else git clone -q [email protected]:HorX/tick.git /home/deployer/apps/tick/shared/cached-copy && cd /home/deployer/apps/tick/shared/cached-copy && git checkout -q -b deploy aef5b8ce4a532b0d7c9b9a04f5ce0d07563829a1; fi"
    
    
  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #5 楼 @hisea #7 楼 @kaka 是第一次部署

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #4 楼 @thisiskun 原来current只是软连,我执行 cap eploy:setup' 后执行cap deploy` ,发现有错误输出:

    ihor@work:/www/tick$ [master] cap deploy
      * 2013-03-12 12:27:08 executing `deploy'
        triggering before callbacks for `deploy'
      * 2013-03-12 12:27:08 executing `deploy:check_revision'
      * 2013-03-12 12:27:08 executing `deploy:update'
     ** transaction: start
      * 2013-03-12 12:27:08 executing `deploy:update_code'
        updating the cached checkout on all servers
        executing locally: "git ls-remote [email protected]:HorX/tick.git master"
        command finished in 4366ms
      * executing "if [ -d /home/deployer/apps/tick/shared/cached-copy ]; then cd /home/deployer/apps/tick/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard aef5b8ce4a532b0d7c9b9a04f5ce0d07563829a1 && git clean -q -d -x -f; else git clone -q [email protected]:HorX/tick.git /home/deployer/apps/tick/shared/cached-copy && cd /home/deployer/apps/tick/shared/cached-copy && git checkout -q -b deploy aef5b8ce4a532b0d7c9b9a04f5ce0d07563829a1; fi"
        servers: ["new.dev.com"]
        [new.dev.com] executing command
        command finished in 8877ms
        copying the cached version to /home/deployer/apps/tick/releases/20130312042724
      * executing "cp -RPp /home/deployer/apps/tick/shared/cached-copy /home/deployer/apps/tick/releases/20130312042724 && (echo aef5b8ce4a532b0d7c9b9a04f5ce0d07563829a1 > /home/deployer/apps/tick/releases/20130312042724/REVISION)"
        servers: ["new.dev.com"]
        [new.dev.com] executing command
        command finished in 854ms
      * 2013-03-12 12:27:25 executing `deploy:finalize_update'
        triggering before callbacks for `deploy:finalize_update'
      * 2013-03-12 12:27:25 executing `deploy:assets:symlink'
      * executing "rm -rf /home/deployer/apps/tick/releases/20130312042724/public/assets && mkdir -p /home/deployer/apps/tick/releases/20130312042724/public && mkdir -p /home/deployer/apps/tick/shared/assets && ln -s /home/deployer/apps/seearm/shared/assets /home/deployer/apps/tick/releases/20130312042724/public/assets"
        servers: ["new.dev.com"]
        [new.dev.com] executing command
        command finished in 845ms
      * 2013-03-12 12:27:26 executing `bundle:install'
      * executing "cd /home/deployer/apps/tick/releases/20130312042724 && bundle install --gemfile /home/deployer/apps/tick/releases/20130312042724/Gemfile --path /home/deployer/apps/tick/shared/bundle --deployment --quiet --without development test"
        servers: ["new.dev.com"]
        [new.dev.com] executing command
     ** [out :: new.dev.com] sh: 1:
     ** [out :: new.dev.com] bundle: not found
     ** [out :: new.dev.com] 
        command finished in 858ms
    *** [deploy:update_code] rolling back
      * executing "rm -rf /home/deployer/apps/tick/releases/20130312042724; true"
        servers: ["new.dev.com"]
        [new.dev.com] executing command
        command finished in 845ms
    failed: "sh -c 'cd /home/deployer/apps/tick/releases/20130312042724 && bundle install --gemfile /home/deployer/apps/tick/releases/20130312042724/Gemfile --path /home/deployer/apps/tick/shared/bundle --deployment --quiet --without development test'" on new.dev.com
    
    

    最后面的错误,上服务器取看,发现releases目录没有 20130312042724这个 release

  • 用哪个账号执行 capistrano 的 deploy:setup 命令? at 2013年03月12日

    是这里吧?

    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}"
    
  • 如果把 Ruby China 的回帖改成 Nested 咋样? at 2013年03月11日

    评论嵌套太多层的话就像网易评论里面盖楼一样,不怎么好看了

    @huacnlee ,可以帮我看下 http://ruby-china.org/topics/9317 这个帖子里面我部署时遇到的问题吗,谢谢

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月11日

    #2 楼 @happypeter 我看了你的那两期和 railscasts 上面的视频,发现 deployer.rb 里面基本一样,但部署起来就有问题了,找了很久没找到原因。

    我是初学 ror,想尝试下用 cap 来部署,之前折腾着玩都是在 appfog,heroku 上面的

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月11日

    郁闷啊,还是没找到原因,哪位帮我看看啊。

  • Teahour.fm 第 6 期发布 at 2013年03月11日

    cool

  • 瞎折腾了一下博客,推荐下便宜的 VPS 跟 SSL 服务 at 2013年03月11日

    个人博客的话 StartSSL 的免费方案就够了吧?

  • 我的演讲稿 追加未删节完整版 at 2012年11月18日

    演讲超赞,对于毕业刚从事软件行业的人来说,很收益。

    尤其是那句"Technial debt is debt ..." ,让我一下子压力山大...

  • RubyConfChina 2012 参会指南 at 2012年11月06日

    一定要早去..!!

  • railscast 怎么了? at 2012年10月13日

    早上付款结束就打不开了....

  • 号召贴:帝都组队学习 ROR at 2012年09月28日

    求在魔都也举办这样的活动

  • RubyConfChina 2012 开始接受报名和售票 at 2012年09月17日

    已购票,期待

  • RubyConfChina 2012 志愿者征集贴 at 2012年09月01日

    16 号周五啊,请不到家,可以 17 号一天吗?

  • 通知功能加入了实时提醒功能 at 2012年08月30日

    @HanHor 试试

  • 有没有好的服务器监视工具. at 2012年07月28日

    以前只用过 cacti.....

  • [上海][2012年07月31日] Ruby Tuesday 活动召集 at 2012年07月28日

    报名参加~~

  • 细节样式调整,默认头像修改 at 2012年07月16日

    偶上榜了.....

  • [上海][2012年07月17日] Ruby Tuesday 活动公告 —— 创建你自己的 gem,以 weibo_2 为例 at 2012年07月14日

    +1

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