On 28 Aug 2010, at 16:21, Phil wrote: > I have 4 or 5 Django projects on GitHub (in private repos), which I > have deployed using a webhost. I would like to share my code, but I > don't want to give away my production settings; in particular, my > database passwords. > > Any ideas how I could do this?
I usually hide the actual configuration file from Git by putting it in .gitignore. I also provide a 'sample' configuration file with a different name (e.g. stick '.example' on the end of the filename) for guidance to people who are checking out the app. Then, my deployment script copies or symlinks a server-specific configuration file (usually stored on the server itself) into place whenever I deploy the app. That way, I keep server-specific (potentially private) config in its own place outside of the app repo. Chris -- You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/github?hl=en.
