Can my /public directory be a symlink with rails 3 + passenger 3 + nginx 0.8?

后端 未结 3 2015
攒了一身酷
攒了一身酷 2020-12-17 02:23

I\'m putting together a rails deployment where the public directory is a symlink to another directory on the system. This is with passenger 3 on nginx .8. It does\'t seem

3条回答
  •  粉色の甜心
    2020-12-17 02:39

    I was able to do this with the guide linked below.

    1. Create your rails app in /var/www/html
    2. Delete default.
    3. Edit the /etc/nginx/nginx.conf file
    4. symlink to sites-enabled
    5. Restart nginx

    How to Deploy Ruby on Rails with Passenger and Nginx on Ubuntu 16.04

提交回复
热议问题