Nginx worker process cant access config.ru

前端 未结 2 1573
孤独总比滥情好
孤独总比滥情好 2021-01-25 17:16

I have set up my RoR app on DO Ubuntu x64. On Nginx port 8080.

My config:

server {
  listen 8080;
 # server_name www.mydomain.com;
  passenger         


        
2条回答
  •  遇见更好的自我
    2021-01-25 17:41

    You need to relax permissions to that the Nginx worker process can access your application directory, by making the directory group- and world-executable:

    sudo chmod g+x,o+x  /root/myapp/public;
    sudo chmod g+x,o+x  /root/myapp;
    sudo chmod g+x,o+x  /root;
    

    and it's done. Good Luck!

    References: Click here

提交回复
热议问题