简体   繁体   English

Rails应用程序部署用户

[英]Rails app deploy users

I'm working on deploying my Rails app with Capistrano and the deploy is failing as it cannot create directory . 我正在与Capistrano一起部署Rails应用程序,并且由于cannot create directory而导致部署失败。

I have two users on my server:- root and deploy. 我的服务器上有两个用户:-root和部署。

Capistrano is using the deploy user. Capistrano正在使用部署用户。

I have told Capistrano to deploy the app to /var/rails_apps/ 我已经告诉Capistrano将应用程序部署到/ var / rails_apps /

It's /var/rails_apps/ that it cannot create a directory in. / var / rails_apps /无法在其中创建目录。

What user should own that folder? 哪个用户应拥有该文件夹? root or deploy? 根还是部署?

The server has nginx on it so I guess the site will run as www-data which looks to be nginx's user but I'm not sure what other areas should be owned by? 服务器上装有nginx,因此我想该站点将以www-data的身份运行,看起来像是nginx的用户,但我不确定应该属于哪个其他区域? Any clarification on this area? 关于这方面的任何澄清?

deploy should own that folder. deploy应拥有该文件夹。 Nginx is just your web server, it is going to proxy requests to your application, which is likely running as a unicorn process (should run as deploy ). Nginx只是您的Web服务器,它将代理请求到您的应用程序,该应用程序可能作为unicorn进程运行(应作为deploy运行)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM