Subbu
未讀,2009年7月2日 清晨5:37:592009/7/2登入以回覆作者
登入以轉寄訊息
你的權限不足,無法在這個群組刪除訊息
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Phusion Passenger Discussions
I tried deploying the application to a sub-directory. But things
didn't work out of the box. I had to do some modifications. I am just
listing them down here for anyone who is trying to do the same thing:
(Assuming I am deploying the app to /crm)
1. Add "RailsBaseURI /crm" in a new line to apache config file under
"<VirtualHost *:80>"
2. Add this line to environment.rb or production.rb (wherever
applicable):
config.action_controller.relative_url_root = "/crm"
3. In config/settings.yml, under tabs key (line#22) change the URLs of
all the tabs to the sub-dir.
4. On line#237 change "/" to "/crm" in:
new Ajax.Request("/" + controller + "/search", {
do the same change in line#268.
5. rake crm:demo:reload
That should take care of deploying the app to a sub-directory 'crm'.