Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active September 29, 2015 05:00
Show Gist options
  • Save YumaInaura/abd4bdd5355565a07af4 to your computer and use it in GitHub Desktop.
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
server {
listen 80;
server_name xxx.xxx.xxx.xxx;
server_name example.com;
root /path/to/public;
location ~ ^/assets/ {
root /path/to/public;
}
}
- 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