Removing ColdFusion comments

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:

http://blog.coldbox.org/blog/tip-of-the-week-using-environment-control-in-coldbox

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

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. :slight_smile:

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.

Hi Chad,

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 :slight_smile:

Chad wrote:

…to help protect us and make it harder for someone else
to understand our code if we were to lose the code…

  1. 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.

  2. 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.