Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 4
Subject:   Aargghhh!!! Deadlines Approach!!
Date:   2003-01-31 01:10:07
From:   anonymous2
This was a long winded message, but I hacked it to the essentials:


A.) Where is the equivalent of the "wwwroot" directory?


B.) How do I set up my site (i.e. where do I put it???) Links throughout my site point to "/" as the site root - they're all broken now.


C.) I've noticed that if I put in the path myself, the .cfm pages which have yet to be coded (at this point they're stand in pages with no cfml - just html), show up as a huge string of gobble-dee-gook.


Thanks for your mentorship Dick!!

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Aargghhh!!! Deadlines Approach!!
    2003-01-31 09:12:30  brianimator [View]

    (had to register, so I'm no longer anonymous)

    What I mean -
    The address bar clued me into where Jrun looks to get to the CF Admin - I put my web directory in the same place.

    My home page worked, but none of the links did, as they are site, not document specific. In order to get to a page, I had to manually type in the address bar to get where I wanted to. .Cfm pages with actual dynamic content ran fine, while place holder .cfm pages (just html with a few static images) gave me a string of text accross the screen (not the usual ColdFusion debug screen)

    This will all be a bad memory hopefully. I'll use your suggestion in your reply, and if that doesn't work, I'll point JRun to Apache. (I'd use the ~/Sites directory - would that work?)

    Thanks a Ton!!!
    • Aargghhh!!! Deadlines Approach!!
      2003-01-31 10:23:19  dicklacara [View]

      OK, Since you didn't give me a path, I will assume the following:
      Applications
      --JRun4
      ----servers
      ------admin
      ------default
      --------CFIDE.............(for RDS deployment)
      --------cfusion...........(equivalent of wwwroot)
      ----------cfdocs
      ----------CFIDE...........(holds the Administrator)
      ----------index.cfm.......(RDS Redirector)
      ----------index.htm.......(RDS Redirector)
      ----------index.html......(RDS Redirector)
      ----------META_INF
      ----------WEB-INF
      ----------YourCFMXapps1...(Your App 1)
      ----------YourCFMXapps2...(Your App 2)
      ----------YourCFMXapps3...(Your App 3)
      --------default-ear
      --------SERVER-INF
      ------lib
      ------samples
      ------template.zip
      Put your CF apps in YourCFMXAppsn. Do not put anything under either CFIDE directory (you will be running under that directory's Application.cfm)

      Do not try to point JRun to Apache at this time -- that will further complicate the issue.

      I would experiment with the GetBaseTemplatePath() function to validate that templates are stored where you think they should be.

      Dick.

  • Aargghhh!!! Deadlines Approach!!
    2003-01-31 04:29:31  dicklacara [View]

    A. Where is the equivalent of the "wwwroot" directory?

    The equivalent of wwwroot is:

    JRun_Root/servers/JRun_Server_Instance/CFMX_Context_Root/

    and the URL is:

    http://127.0.0.1:port/CFMX_Context_Root/

    On my system I used the following:
      JRun_Root............./Applications/JRun4/ (default)
    CFMX_Context_Root.....cfusion (default)
    I created a JRun_Server_Instance named cfmx1, and used the default CFMX-Context_Root so the path is:
       /Applications/JRun4/servers/cfmx1/cfusion/
    and the URL is
       http;//127.0.0.1:8101/cfusion/
    If you used the default server instance, the path would be:
       /Applications/JRun4/servers/default/cfusion/
    and the URL would be:
       http;//127.0.0.1:8100/cfusion/
    This may seem to be a lot of work, but it gives us flexibility -- we can setup multiple JRun_Server_Instances and/or multiple CFMX_Contexts. We will use this flexibility in later articles.

    B. How do I set up my site (i.e. where do I put it???)

    The outermost level where you can execute CF Templates is the CFMX-Context_Root.

    If you have RDS installed, there will be three extra files installed at this level:
      index.cfm
    index.htm
    index.html
    These comprise the RDS Redirector -- they will redirect the URL to the Administrator -- CFIDE/administrator/index.cfm

    To avoid any conflict, you should not store any of your application files in the CFMX-Context_Root, itself -- rather they should be deployed in a directory under the CFMX-Context_Root.

    For example, with an application directory named mycfmxapps the path would be:

    JRun_Root/servers/JRun_Server_Instance/CFMX_Context_Root/mycfmxapps/

    and the URL would be:

    http://127.0.0.1:port/CFMX_Context_Root/mycfmxapps/

    C. I don't understand the question -- examples please!