SVN Remove file from commiting, but not deleting it?
I have a variable in my index.php file that needs to be set to 'development' locally, but stay set to 'production' in the repo. Is there a way I can have this file not commit this change to the repo, but not remove it from the repo completely?
2 Replies
Then you can use environ variables on the server(s) with php's getenv() to define which one to load.
edit: or you can simply define your single var depending on the getenv() instead of having separate config files.