更新时间:2023-01-06 13:54:16
你运行应用程序到该特定路径的方式(是 script / server --path = / sub-uri
或者具有将旅客部署到目录)您不需要更改代码,因为网址助手会自动调整他们对环境的路径。
Regardless of the way you are running the application to that specific path (be it script/server --path=/sub-uri
or have deployed passenger to a directory) you don't need to change the code as the url helpers will automatically adjust their path to the environment.