Changing the base URL for Rails 3 development

后端 未结 3 1026
别跟我提以往
别跟我提以往 2020-12-01 04:50

I know I\'m going to deploy to an environment with my application running with a base URL which looks like this:

http://someserver/mydepartment/myapp
         


        
3条回答
  •  旧巷少年郎
    2020-12-01 05:19

    Add the below line to the end of config/environment.rb

    ActionController::Base.relative_url_root = "/mydepartment"
    

提交回复
热议问题