Recent Posts

Jun 24 2009

Flush ColdFusion trusted cache from Farcry Webtop

On my Farcry production server I have enabled Trusted Cache to improve ColdFusion performance. But every time I deployed changes to my Farcry site, I would forget to flush the cache and would take my a moment ot two to realise why my changes have not taken affect.

So I have created an extension to the Farcry Admin Reload application so you flash the ColdFusion cache from the the WebTop.

You can see the code for Flush ColdFusion trusted cache from Farcry Webtop on FarcryCMS Docs.

0 comments - Posted by AJ Mercer at 1:21 PM - Categories: Farcry ColdFusion

May 27 2009

Setting up Google Mail in Railo

Another one for my notes that may help others. Here are the settings to uses Google mail Server for send emails from Railo.

SMTP: smtp.gmail.com
Username: email@gmail.com
Password: *********
Port: 587
TLS: checked
SSL: not checked

0 comments - Posted by AJ Mercer at 7:45 PM - Categories: Railo

May 27 2009

Railo Express with Virtual Hosts

I wanted to play around with Railo's Extentions without too much messing around. So I thought I would use Railo Express, but I wanted a web site per application, so they could run from the web root. After a bit of Googling (with google cache to the rescure for www.railo-technologies.com/en/index.cfm?treeID=211) I found out how to get this working. This blog is mostly for my personal records, but if it helps others that is great too.

In /contexts directory you will see railo.xml. Make a copy of this file, eg railo-mangoblog.xml, and then edit it.
Find the following
    <Set name="resourceBase">
        <SystemProperty name="jetty.home" default="."/>/webroot/
    </Set>
and change webroot to a new name, eg webroot-mangoblog

In the same file, uncomment the virtual hosts section and add you domain. eg
  <Set name="virtualHosts">
    <Array type="String">
      <Item>mangoblog.railo.org</Item>
    </Array>
  </Set>

Save this file.

Next create the directory you just defined in the same directory as webroot.

(Re)Start Railo using the BAT file(s). You should see a WEB-INF directory being created for you. You can now administor you site for that domain, eg http://mangoblog.railo.org/railo-context/admin/index.cfm

0 comments - Posted by AJ Mercer at 7:19 PM - Categories: Railo

Previous Posts

May 14

Population PDF Forms with ColdFusion 8

0 comments - Posted by AJ Mercer at 3:48 PM - Categories: ColdFusion | CFML |

Apr 8

Cubs in Derby

0 comments - Posted by AJ Mercer at 9:00 PM - Categories: Scouts |

Apr 1

Railo 3.1 Open Source is here

0 comments - Posted by AJ Mercer at 2:00 AM - Categories: CFML | Railo | ColdFusion |

Mar 9

webDU 2009

0 comments - Posted by AJ Mercer at 2:37 PM - Categories: ColdFusion | CFML | Railo | Family Life |