Last active
September 29, 2015 05:00
-
-
Save YumaInaura/abd4bdd5355565a07af4 to your computer and use it in GitHub Desktop.
Rails 4.2以降: Rails+Unicorn で、publicディレクトリの中身が404になる場合の解決策 ref: http://qiita.com/Yinaura/items/d7dc3daefb5825aba474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name xxx.xxx.xxx.xxx; | |
server_name example.com; | |
root /path/to/public; | |
location ~ ^/assets/ { | |
root /path/to/public; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- config.serve_static_assets = false | |
+ config.serve_static_assets = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment