v2gba
V2EX  ›  问与答

你们的博客都是如何更新程序和管理源码的?

  •  
  •   v2gba · Aug 26, 2014 · 3136 views
    This topic created in 4368 days ago, the information mentioned may be changed or developed.
    标题讲不清楚,
    我想表达的是,
    如果做到安全开源博客的源码,并且方便更新自己的博客?

    是否是github公开的repo,然后本机这边修改后push过去,服务器那边在拉下来.
    这样的话,github内如果隐去一些配置信息?

    @Ricter 似乎你的博客源码就是扔在公开repo里的?
    6 replies    2014-08-26 17:37:20 +08:00
    RIcter
        1
    RIcter  
       Aug 26, 2014 via iPhone   ❤️ 1
    我有个localsettings..
    RIcter
        2
    RIcter  
       Aug 26, 2014 via iPhone
    然后加在.gitignore里
    wolong
        3
    wolong  
       Aug 26, 2014
    自己的项目直接在本地更新就行了。
    582033
        4
    582033  
       Aug 26, 2014
    git push到自己家里内网的树莓派上
    orvice
        5
    orvice  
       Aug 26, 2014
    比如这样?
    lib/config.php
    lib/config-sample.php

    然后再.gitignore添加lib/config.php
    v2gba
        6
    v2gba  
    OP
       Aug 26, 2014
    @orvice 恩 应该是和ricter一个思路.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:23 · PVG 22:23 · LAX 07:23 · JFK 10:23
    ♥ Do have faith in what you're doing.