lukehorvat / rails-issue-21193

Home Page:https://github.com/rails/rails/issues/21193

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firstly, install Docker.

Then execute the following commands:

$ git clone git@github.com:lukehorvat/rails-issue-21193.git
$ cd rails-issue-21193
$ docker build -t rails-issue-21193 .
$ docker run -p 9000:9000 -d rails-issue-21193

If everything is set up properly, you should see a welcome message from nginx when you navigate to http://<host-ip>:9000/ in a web browser.

Next, navigate to http://<host-ip>:9000/app/, which is the subdirectory where the Rails app is hosted. Immediately, you'll notice that it redirects to http://<host-ip>:9000/ui/. But based on the configuration in routes.rb, it really should redirect to http://<host-ip>:9000/app/ui/ instead.

Bug?

About

https://github.com/rails/rails/issues/21193


Languages

Language:Ruby 74.4%Language:HTML 19.5%Language:CSS 2.7%Language:JavaScript 2.6%Language:Nginx 0.5%Language:Shell 0.2%