Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RACK_BASE_URI and delegating to Sinatra/Rack #1532
<Location /my_app/> ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ </Location>
and over there, I'm running Padrino in Puma, with
If I'm using Padrino's new URL generation, all is fine (assuming
url :test # => /my_app/test absolute_url :test # => http://example.com/my_app/test
But in some circumstances, things are left to Sinatra or Rack, neither of which knows anything about
url '/test' # => /test absolute_url '/test' # => http://example.com/test request.url # => /test
(I wanted to get the URL to files within
Another place I found (as much as I could see) is
Anyway, if I am doing something wrong, I shall appreciate the feedback, since I could not find much documentation on this.
asset_path :, 'my_data' # => /my_app/my_data?1388045670
So that kind-of solves one of my problems. (It also appends the timestamp, without the option to switch it off; since my asset is static and unlikely to change, and allowing caching would make sense, a pure
The fact remains that
Thank you, the patch makes sense.
Actually, I was not, thank you for that as well. I am a newcomer to Padrino, don't know all the ins and outs yet. Coincidentally, is there a central list of all the options? I find Padrino nice to work with, but I struggle with documentation.
I'd rather say that