V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
solar
V2EX  ›  程序员

请问有没有 jekyll 的进程守护工具

  •  
  •   solar ·
    solarcellsky · Feb 21, 2014 · 3350 views
    This topic created in 4452 days ago, the information mentioned may be changed or developed.
    如题。难道每次都要到目录里执行 jekyll serve --watch 吗?
    6 replies    1970-01-01 08:00:00 +08:00
    Shieffan
        1
    Shieffan  
       Feb 21, 2014   ❤️ 1
    jekyll本是一个静态页面生成工具,jekyll serve是自带了一个简陋的server来方便你在本地查看。既然你已经生成了静态页面,那为啥不用nginx来Serve你的static pages
    wwqgtxx
        2
    wwqgtxx  
       Feb 21, 2014 via Android
    nginx
    apache
    随便哪一个不都行么?
    hit9
        3
    hit9  
       Feb 21, 2014
    @Shieffan 但是nginx不会watch你的文件自动编译呀
    hit9
        4
    hit9  
       Feb 21, 2014
    我曾写过的一个类似工具,默认是带进程守护功能的。https://github.com/hit9/rux。

    其实完全可以自己写代码让jekyll守护
    Shieffan
        5
    Shieffan  
       Feb 21, 2014
    @hit9 jekyll部署方法有很多,我觉得最常用的应该就是git部署吧,push之后自动build。http://jekyllrb.com/docs/deployment-methods/

    要不就在本地build之后push到server不就行了。
    hit9
        6
    hit9  
       Feb 21, 2014
    @Shieffan 是啊、 我不大熟悉jekyll, 应该 --watch选项是监测文件变化的,有写发生会自动编译一次的,楼主的意思如何在http服务和自动编译服务都守护运行的意思吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2404 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    ♥ Do have faith in what you're doing.