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

Leave a comment