Last active
July 23, 2016 04:29
-
-
Save iknowkungfoo/9687c23fd2bc43d75d8e to your computer and use it in GitHub Desktop.
Start and stop ColdFusion server on OSX.
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/ColdFusion11/cfusion/bin/coldfusion stop | |
} | |
trap finish 2 | |
/Applications/ColdFusion11/cfusion/bin/coldfusion start | |
tail -f /Applications/ColdFusion11/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 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 offoo
in the terminal.To stop the ColdFusion server, press
command+c
and you'll see the command output as the server shuts down.