Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch ColdFusion from command line

Is there a way to launch ColdFusion from the command-line?

I am not talking about launching the CF and related services with the net start command.

I remember doing this in the past. Basically, running CF from the command-line offered two advantages:

  1. You didn't need to keep it as a Service and either have it always launch at boot-up or have to deal with the Services Manager
  2. (more importantly) It echoed back to the screen all kinds of messages, especially error messages, which were helpful when actively developing (because you didn't need to go dig in the ColdFusion log files to find them)

It is possible that I'm mis-remembering and that this hasn't been available since ColdFusion 5.0. Is it at all possible with ColdFusion 9?

Update: Environment: Multi-server configuration with JRun.

like image 733
ale Avatar asked Nov 10 '11 16:11

ale


2 Answers

Two ways to do this:

  1. In development, add the server to ColdFusion Builder, and all the messages you talk about will show up in the console tab.
  2. Start ColdFusion from the command line. The instructions are slightly different per environment but basically you want to get to bin directory and issue jrun start cfusion or coldfusion start or something similar . Post your environment for more specifics.

Go to C:\JRun\bin and issue jrun start cfusion

like image 142
Sam Farmer Avatar answered Nov 05 '22 11:11

Sam Farmer


In your ColdFusion9/bin Folder you can find stop.bat and start.bat. Executing the latter gives you exactly what you want.

like image 40
Andreas Schuldhaus Avatar answered Nov 05 '22 12:11

Andreas Schuldhaus