crazycookie
V2EX  ›  问与答

大家的代码 都是用何种方式 发布到 生产环境的?

  •  
  •   crazycookie · Feb 10, 2011 · 9303 views
    This topic created in 5751 days ago, the information mentioned may be changed or developed.
    31 replies  •  1970-01-01 08:00:00 +08:00
    huacnlee
    huacnlee
    Feb 10, 2011
    1
    以前FTP,但后面渐渐发现文件多了发布过程非常缓慢,而且不好管理
    现在改用 Git,那是相当的给力啊!发布是瞬间的事情,而且fu wu q
    huacnlee
    huacnlee
    Feb 10, 2011
    2
    而且可以临时在 Production 环境快速处理个 Bug 并提交,与主版本同步。
    遇到大问题的时候快速回复到上一个版本
    kayue
    kayue
    Feb 10, 2011
    3
    git's master branch
    est
    est
    Feb 10, 2011
    4
    svn export
    freefcw
    freefcw
    Feb 10, 2011
    5
    打tag,svn co的
    如果是C/C++的,也差不多把,不过有dailybuild系统
    liwei
    liwei
    Feb 10, 2011
    6
    不告诉你 ~~
    falconeye
    falconeye
    Feb 10, 2011
    7
    maven
    huacnlee
    huacnlee
    Feb 10, 2011
    8
    @est 那样太慢了,有时紧急修复一个问题,只是改了几个文件在导出就累了
    还不如自己把版本库上在产品环境,这个 Git 很有优势
    crazycookie
    crazycookie
    OP
    Feb 10, 2011
    9
    @liwei 这货出现了。。。
    其实 我一直在svn和git上摇摆
    est
    est
    Feb 10, 2011
    10
    @huacnlee 基于安全考虑吧。泄露 /.svn/ 目录是经常的问题。修改文件这个的确麻烦。
    freefcw
    freefcw
    Feb 10, 2011
    11
    @est 那就在不让访问这个目录呗……
    ratazzi
    ratazzi
    PRO
    Feb 10, 2011
    12
    git 或者 rsync
    Livid
    Livid
    MOD
    PRO
    Feb 10, 2011
    13
    hg
    huacnlee
    huacnlee
    Feb 10, 2011
    14
    @freefcw 偶尔会不小心弄掉设置
    @est Git + Rails 的项目就没这个问题,Web 目录在 public 下面,下面没有 .git
    minghua
    minghua
    Feb 10, 2011
    15
    我想知道的是,有比capistrano更方便的部署方式吗?capistrano貌似只能用在rails部署

    https://github.com/capistrano/capistrano
    iwinux
    iwinux
    Feb 10, 2011
    16
    hg push + pull
    myrual
    myrual
    Feb 10, 2011
    18
    git or hg
    qichangxing
    qichangxing
    Feb 10, 2011
    19
    打包修改过的文件,FTP 上传。
    napoleonu
    napoleonu
    Feb 10, 2011
    20
    不知道有没有人用 ln -s 这个,代码怎么到服务器随便啦。
    dongsheng
    dongsheng
    Feb 12, 2011
    21
    通过git的分支,把git的repo分出dev,test,master分支,通过足够测试的test分支合并到master (production)
    eas
    eas
    Feb 13, 2011
    22
    开发提交编译完的内容(二进制文件)到发布用的svn。运维checkout这些文件,发布去cdn
    aligo
    aligo
    Feb 13, 2011
    23
    capistrano不是只用在rails上啊,php什么的也可以用

    php也可以使用基于ant的phing了,相当好用,另外一个选择就是maven,不过它们比较麻烦是用xml做配置
    chuangbo
    chuangbo
    Feb 13, 2011
    24
    用Git那是相当的爽,可是问题是在服务器上随时保留一个全代码的访问权限,是一个安全问题。有时间去折腾一下你们说的 capistrano
    xiaojay
    xiaojay
    Feb 15, 2011
    25
    @livid 具体是hg哪几条命令?thanks
    shinyzhu
    shinyzhu
    Feb 15, 2011
    26
    Ctrl+C,Ctrl+V算不算?
    iwinux
    iwinux
    Feb 15, 2011
    27
    @chuangbo @xiaojay 我的做法是 hg push 到 bitbucket (via SSH),然后再在服务器上 hg pull
    leigod
    leigod
    Feb 15, 2011
    28
    恕我孤陋寡闻

    hg是什么? 某个应用的缩写?
    roamlog
    roamlog
    Feb 15, 2011
    29
    @leigod mercurial
    leigod
    leigod
    Feb 15, 2011
    30
    @roamlog 谢谢
    xiaojay
    xiaojay
    Feb 15, 2011
    31
    @iwinux thanks

    我开始用这篇 http://stevelosh.com/blog/2009/01/deploying-site-fabric-and-mercurial/ 的方法。

    1) 也是用bitbucket做中介

    2) 试用fabric简化操作
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 19:10 · PVG 03:10 · LAX 11:10 · JFK 14:10
    ♥ Do have faith in what you're doing.