• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Liang
V2EX  ›  程序员

求教,如何科学地部署程序?

  •  
  •   Liang · Mar 18, 2016 · 2550 views
    This topic created in 3795 days ago, the information mentioned may be changed or developed.
    平时部署程序,都是先将要更新的文件上传到一台开放了上传功能的服务器,然后在生产服务器 wget 下来,觉得这样干净点。源于本人强迫症,所以才会这样。

    生产服务器,不想 ftp ,觉得不安全;也不想 sz ,文件一多非常麻烦; git 没用过,所以不会。

    每次更新文件就痛苦,请问有没有更好的部署程序的方法,能够一键更新、自动更新,高端大气一点,符合程序员装逼的个性。哎,不知怎么表达,反正你们懂的。

    实在不行,只好 svn hook 了。
    9 replies    2016-03-19 17:49:04 +08:00
    pupboss
        1
    pupboss  
       Mar 18, 2016
    Git 和 SVN 差别很大?
    toono
        2
    toono  
       Mar 18, 2016
    scp 复制文件到服务区再部署算安全吗?
    毕竟是需要密钥的
    clino
        3
    clino  
       Mar 18, 2016 via Android
    git
    不会就学
    williamx
        4
    williamx  
       Mar 18, 2016
    直接 sftp
    leejanfin
        5
    leejanfin  
       Mar 18, 2016 via iPhone
    用持续集成
    cxbig
        6
    cxbig  
       Mar 18, 2016
    最好能上 Git ,再不学真要被淘汰了。
    自动化部署有很多方案 Capistrano , Chef , Ansible ……选一个学吧
    knightdf
        7
    knightdf  
       Mar 19, 2016
    我都是 fabric+git
    realpg
        8
    realpg  
       Mar 19, 2016
    既然你说 svn ,那就服务器 svn update 指定 revision 呗
    nowcoder
        9
    nowcoder  
       Mar 19, 2016
    预发环境 svn 打包测试,测试通过后 scp 到其他服务器。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2642 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 11:05 · PVG 19:05 · LAX 04:05 · JFK 07:05
    ♥ Do have faith in what you're doing.