Anyone know of an easy way to remove ColdFusion comments when moving from a DEV environment to a PRODUCTION environment without having to do it manually? Or recommend any other approach for commenting?
I’m not really following what you’re asking, but it sounds like you want to have one setting on dev and another setting on production.
Please read this and see if it helps address your problem:
ColdBox Platform Evangelist
Ortus Solutions, Corp
You mean physically removing ColdFusion comments from the files themselves?
Curious why you need to do this, can you clarify? May help us answer your question better.
Yes, physically remove comments. Is it being requested this to help protect us and make it harder for someone else to understand our code if we were to lose the code to someone else.
Why not deploy compiled code to production instance, its easy and effective way to protect code-base. Also no one can decompile back to CF
…to help protect us and make it harder for someone else
to understand our code if we were to lose the code…
If someone is capable of taking your code, it is unlikely that a lack of comments will make it harder for them to understand, in any meaningful way.
It wont have any effect if the code is stolen from your source control server.
Secure systems are secure even when an attacker has full knowledge of the code.