By Peter Bell

Starting ColdFusion from Command Line on OS X

In the category of "blogged so I don't have to Google for it in the future", here is a command to start ColdFusion from the command line:

/Applications/JRun4/bin/jrun start cfusion

Comments
You mean you haven't memorized it yet? =)
# Posted By Sammy Larbi | 4/6/08 8:50 PM
I always make a /opt directory on Mac to match the convention /opt/JRun4 or /opt/ColdFusion that I use on Linux and Solaris, so then there's no guessing.
# Posted By Steven Erat | 4/6/08 9:02 PM
I've noticed many different commands though for starting CF. Do you guys know what the difference is? Before 8.0.1 I had to start CF via terminal with the following:

cd /Applications/ColdFusion8/runtime/bin
./jrun -start coldfusion

Although now I've seen Peter's version that he mentions here and then in the install guide for CF 8.0.1 it mentions I should do the following on Mac (note that I'm using the single server built in install):

cd /Applications/ColdFusion8/bin/coldfusion start

Is their any difference between the two? Which is the one I really ought to be using? I've noticed though with the first one I can keep that terminal window open and see anything the server spits out or I do via cfdump output = console. With 8.0.1 though I can start CF on Mac OSX just fine via the Launcher UI. Although it would be nice to have that terminal window to see what debug/info the server outputs.
# Posted By Javier Julio | 4/6/08 9:13 PM
Hola Javier, que tal?!

For "Server Configuration" installations the convention is to start with {cf_root}/bin/coldfusion -start, however "Multiserver Configuration" or "J2EE Configuration with JRun" should start ColdFusion server as {jrun_root}/bin/jrun -start {server_instance} (along with any other desired options such as -nohup)
# Posted By Steven Erat | 4/6/08 10:12 PM
Hey Steven! Bien como siempre! Bueno verte amigo!

Steven, what are some of the other desired options that I can use? Not sure how to phrase the following. By using the {cf_root}/bin/coldfusion -start command (or going through the Launcher) is it possible to tap into the CF process? That way anytime I use cfdump output=console I can see the data I display in a terminal window? I find this incredibly useful when doing heavy remoting in a Flex/CF app.
# Posted By Javier Julio | 4/6/08 11:32 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.