justincnn
V2EX  ›  互联网

WordPress 有没有办法和 hexo 一样,文件和配置保存在本地,

  •  
  •   justincnn · Jun 23, 2023 · 1506 views
    This topic created in 1079 days ago, the information mentioned may be changed or developed.
    这样就可以一键搬家,或者不用担心服务器跑路了?
    11 replies    2023-06-23 12:25:43 +08:00
    xmlf
        1
    xmlf  
       Jun 23, 2023 via Android
    用 sqllite 数据库就行了。官方有插件
    DonaidTrump
        2
    DonaidTrump  
       Jun 23, 2023
    @xmlf 用 sqlite 有啥用?对 OP 来说和 mysql/pgsql 有啥区别?
    ltkun
        3
    ltkun  
       Jun 23, 2023 via Android
    官方有 docker 安装
    SethShi
        4
    SethShi  
       Jun 23, 2023
    @tulongtou sqlite 就是本地文件呀, 话说你怼一楼干吗
    DonaidTrump
        5
    DonaidTrump  
       Jun 23, 2023
    @seth19960929 sqlite 也要和 wordpress 一起在服务器上面啊,放本地怎么给 Wordpress 用?
    DonaidTrump
        6
    DonaidTrump  
       Jun 23, 2023
    @seth19960929 我怼一楼是因为他在那瞎说,要么不懂 Wordpress ,要么不懂 hexo ,换 sqlite 根本解决不了 op 的问题。
    hexo 是本地写 markdown 文件,编译成 html 之后扔到服务器上,所以配置文件和数据都在本地。wp 换了 sqlite 能解决这问题么?
    cxh116
        7
    cxh116  
       Jun 23, 2023 via Android
    @tulongtou 能,本地写了再把 sqlite 的文件拷到服务上面去。
    DonaidTrump
        8
    DonaidTrump  
       Jun 23, 2023
    @cxh116 你这不是抬杠么,mysql/pgsql 本地写了不一样可以传到服务器上去。
    SethShi
        9
    SethShi  
       Jun 23, 2023
    看来私我理解错了, 楼主的意思是本地写博客

    话说, 楼主弄个定时任务每天备份到七牛不挺好的?
    SethShi
        10
    SethShi  
       Jun 23, 2023
    @tulongtou 嗯嗯, 是我理解错了
    Kaiyuan
        11
    Kaiyuan  
       Jun 23, 2023 via iPhone
    @tulongtou 如果你是这样的话,本地搭 Wordpress ,用插件生成静态文件然后传到服务器就可以,有这样的插件的,但我忘记名字,以前折腾过。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 13:51 · PVG 21:51 · LAX 06:51 · JFK 09:51
    ♥ Do have faith in what you're doing.