Welcome! Log In Create A New Profile

Advanced

How to serve static in Rails?

Posted by kkv 
kkv
How to serve static in Rails?
June 22, 2016 01:30AM
It's typical for Ruby on Rails application to store it's static resources in /public/images , /public/stylesheets, /public/javascript subirs. But all of them have the same beginning of URI: /assets/1.jpg /assets/1.css /assets/1.js.

How can I configure Nginx to properly serve such resources?
Re: How to serve static in Rails?
June 22, 2016 01:41AM
By using multiple location blocks.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready