cesine/iField — pull request #1 by hisakonog (2012-08-28 23:09:50+00:00)
Title: debug/production switch: please code review

Refactor so that debug/production switching is possible.
Two bash files are just the opposite of each other and I think they are correct. Reading a bit about what sed does in here http://www.grymoire.com/Unix/Sed.html I understand that sed looks for a string in the old file and rewrite the string and puts the new string in the new file. In our bash scripts the new file is just output, so mv moves output back into the old file.
How do you switch between debug and production, can you do it at will? I feel that leaving the code as it is in this pull request may make the app switching between the two modes back and forth... Am I correct to think that gitignore is preventing the app from switching from debug to production and that we need to manually manipulate gitignore to switch between two modes? (Or am I totally lost?)