Ask A Question

Notifications

You’re not receiving notifications from this thread.

Deploy rails project using subdirectories

bhavya asked in Servers

deploy the existing project with sub-directory without any change in project routes.
For example: project should run on https://domain.com/myproject/home instead of https://domain.com/home
need to append the subfolder name before /home ..
Thanks

Reply

Hey!
You may try nginx rewrite module - https://www.nginx.com/blog/creating-nginx-rewrite-rules/

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.