passenger 部署Rails项目后不写log

Posted by wxianfeng Mon, 24 Oct 2011 05:15:00 GMT

最近部署一个项目,采用的是centos + nginx+ passenger

发现rails project不打log, 是文件权限问题,passenger 规定文件权限不能是root ,如果你部署在ubuntu就不会有这个问题

passenger典型部署结构

lecai-
       |-- current
       |-- releases
       |-- shared

把根目录lecai的权限改了即可

>useradd deploy
>chown -R deploy:deploy lecai

This entry was posted on Mon, 24 Oct 2011 05:15:00 GMT and Posted in , . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.

Tags


Trackbacks

Use the following link to trackback from your own site:
http://wxianfeng.com/trackbacks?article_id=221

Comments

  1. Avatar
    greece ferry about {{count}} years ago:

    Hello there, I found yohr web site by way of Google
    whilst looking for a comparable subject, ykur web site came up, it looks good.
    I’ve bookmarked it in my google bookmarks.
    Hello there, simply turned into aware of yohr weblog viia Google, and foound that
    it’s truly informative. I’m goiing to watch out for brussels.
    I’ll appreciate should you proceed this in future.
    Many folks will likely be benefited out of your writing.
    Cheers!

  2. Avatar
    Φθηνά καράβια almost {{count}} years ago:

    Quality articles or reviews is the main to attract the visitors to go to see the website,
    that’s what this web site is providing.

  3. Avatar
    Φθηνά καράβια almost {{count}} years ago:

    Quality articles or reviews is the main to attract the visiitors to go to see the website, that’s what this wweb site is providing.

Leave a comment