Skip to content

Instantly share code, notes, and snippets.

@iknowkungfoo
Created July 23, 2016 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iknowkungfoo/41d278aeabf732ffd69e0841bd9772ff to your computer and use it in GitHub Desktop.
Save iknowkungfoo/41d278aeabf732ffd69e0841bd9772ff to your computer and use it in GitHub Desktop.
function finish {
/Applications/ColdFusion2016/cfusion/bin/coldfusion stop
}
trap finish 2
/Applications/ColdFusion2016/cfusion/bin/coldfusion start
tail -f /Applications/ColdFusion2016/cfusion/logs/coldfusion-out.log
@iknowkungfoo
Copy link
Author

In the bash terminal, create a script named cf. When you run it ./cf, the contents of coldfusion-out.log will be streamed to the terminal. This will let you know when the CF server is ready to go (among other things).

You can then do a <cfdump var="#foo#" output="console"> to see the contents of foo in the terminal.

To stop the ColdFusion server, press command+c and you'll see the command output as the server shuts down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment