Deploying the app to a sub directory

瀏覽次數:9 次
跳到第一則未讀訊息

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'.

Subbu

未讀,
2009年7月2日 清晨5:40:052009/7/2
收件者:Phusion Passenger Discussions
I am EXTREMELY sorry. This message was meant for fatfreecrm group. I
posted here by mistake.
回覆所有人
回覆作者
轉寄
0 則新訊息