Created
July 23, 2016 04:31
-
-
Save iknowkungfoo/41d278aeabf732ffd69e0841bd9772ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the bash terminal, create a script named cf. When you run it
./cf
, the contents ofcoldfusion-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.